ID: 12475 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Variables related Operating System: Windows 2000 Server PHP Version: 4.0.6 New Comment:
Typically register_globals = on is what creates $PHP_SELF. register_globals affects many variables, SERVER ones too. If you really want $PHP_SELF to exist then try: if (!ini_get('register_globals')) { extract($HTTP_SERVER_VARS); } This may or may not be a solution to the original bug report, but is regarding Oliver's and perhaps Jeff's. Previous Comments: ------------------------------------------------------------------------ [2002-05-14 07:30:15] [EMAIL PROTECTED] but you can use $_SERVER['PHP_SELF'] to access PHP_SELF. maybe $PHP_SELF doesn't exist anymore?! ------------------------------------------------------------------------ [2002-05-14 07:27:57] [EMAIL PROTECTED] I had the same problem using PHP 4.1.2 and still have the problem using 4.2.1. Platform is Linux and Apache 1.3.24. ------------------------------------------------------------------------ [2002-02-23 12:00:00] [EMAIL PROTECTED] Hi. I also have this Problem, even with the newest version of PHP (4.1.1, using the *.msi file). I'm using Xitami, but I can't be that, because when using PHP3, all works well. Is there a fix? ------------------------------------------------------------------------ [2002-01-14 02:07:49] [EMAIL PROTECTED] No feedback, closing. ------------------------------------------------------------------------ [2001-12-24 10:06:34] [EMAIL PROTECTED] Can you try 4.1.0 or even 4.1.1 (when it's out) or the latest CVS (snaps.php.net)? ------------------------------------------------------------------------ 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/12475 -- Edit this bug report at http://bugs.php.net/?id=12475&edit=1