ID:               15690
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Windows 2000
 PHP Version:      4.1.1
 New Comment:

I'm experiencing the same problem since I updated to 4.2.3 (CGI
version, Xitami, win98). register_globals is on. (When I turn it off,
$PHP_SELF is not even listed in phpinfo(), when I turn it on, it is
listed but empty.)

thanks to [EMAIL PROTECTED] for the workaround: It works.


Previous Comments:
------------------------------------------------------------------------

[2002-07-28 01:00:08] [EMAIL PROTECTED]

No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2002-06-27 20:30:10] [EMAIL PROTECTED]

Do you have register_globals=On in your php.ini?


------------------------------------------------------------------------

[2002-04-26 05:45:07] [EMAIL PROTECTED]

For me it's a 2 year problem.
It means that I'm used to it, but I had always a persistent internet
connection.

I use Apache 1.3.24 with PHP 4.2.0
and still the same problem 
Windows 98 and windows 2000

Charlie

------------------------------------------------------------------------

[2002-03-18 06:42:33] [EMAIL PROTECTED]

I have the same problem.
I use PHP 4.1.2 with Xitami 2.4d9 on windows ME. If I use apache 1.3.23
instead of Xitami, everything is all right...

------------------------------------------------------------------------

[2002-02-24 08:53:02] [EMAIL PROTECTED]

I've got a workaround for this problem, that seems to work perfectly:

1. Create a file somewhere, e.g. c:\self_fix.php
2. Insert to following content:
     <?php $PHP_SELF = ereg_replace("/$","",$SERVER_URL).$SCRIPT_NAME;
?>
   (This will create a 'new' variable $PHP_SELF by pasting $SERVER_URL
   and $SCRIPT_NAME together)
3. Close and save the file. Now open your php.ini (probabely located
   in your C:\Windows-directoy).
4. Add the following lines to the [php] section:
     auto_prepend_file = c:\self_fix.php
     register_globals = on
   (These will prepend the file created above to every PHP-file called
   by the interpreter. The second line makes $PHP_SELF globally
available.)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/15690

-- 
Edit this bug report at http://bugs.php.net/?id=15690&edit=1

Reply via email to