|
||||
[maplab-users] problemStephen Woodbridge swoodbridge@where2getit.comSat, 27 Sep 2003 08:32:48 -0400
|
Create a file called info.php and put into it <?php phpinfo(); ?> now go to your browser and hit http://your_server/path/to/info.php read through the page and look for $PHP_SELF what does it say? Is that value have the '|' character in it? -Steve On 27 Sep 2003 at 2:09, ronny wrote: > thanks for the info but it didn't help,,still that > problem is there..someone pls help me before i scream > *smile*. > --- woodbri@swoodbridge.com wrote: > > Actually this was a problem with PHP 4.3.0 > > > > On 26 Sep 2003 at 12:17, Stephen Woodbridge wrote: > > > > > It is more likely that you are using PHP 4.3.1 > > (IIRC) that has a bug > > > that mangles the $PHP_SELF in the CGI version. > > There is a simple fix > > > if this is the problem: create an auto_prepend.php > > file and configure > > > php to use it then put the following in it> > > > > > > <?php > > > ///// Quick fix until the PHP guys fix > > $_SERVER['PHP_SELF'] ///// > > > $_SERVER['SCRIPT_NAME'] = > > substr($_SERVER['PATH_TRANSLATED'], > > > strlen($_SERVER['DOCUMENT_ROOT'])); > > > > > > if (substr($_SERVER['SCRIPT_NAME'], 0, 2) == '//') > > { > > > $_SERVER['SCRIPT_NAME'] = > > substr($_SERVER['SCRIPT_NAME'], 1); > > > } > > > > > > $PHP_SELF = $SCRIPT_NAME = $_SERVER['PHP_SELF'] = > > > $_SERVER['SCRIPT_NAME']; > > > > > > ///////////////////////////////////////////////////////////////// > ?> > > > > > -Steve > > > ===== > ronny > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com >
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |