Bug #17755 Updated: $PHP_SELF IE5.5 vs Opera6.03

From: Date: Thu, 20 Jun 2002 08:25:26 +0000
Subject: Bug #17755 Updated: $PHP_SELF IE5.5 vs Opera6.03
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11523@lists.php.net to get a copy of this message
ID: 17755 Updated by: derick@php.net Reported By: ad@premiere-host.com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: Windows98 PHP Version: 4.2.1 New Comment: Can you please try the latest apache too? Derick Previous Comments: ------------------------------------------------------------------------ [2002-06-20 04:17:34] ad@premiere-host.com The PHP problem arises when running Apache 1.3.14 (Win32) as localhost but only when the browser on the is Opera. They are both on the same computer - ie I have not tried on two machines on a local network. But using Apache 1.3.20 on my remote server it performed OK under Opera on my machine. ------------------------------------------------------------------------ [2002-06-18 15:50:52] sniper@php.net Under which webserver are you running PHP when it doesn't work?? ------------------------------------------------------------------------ [2002-06-18 04:01:13] ad@premiere-host.com The remote server is Apache under RedHat. And the files work correctly with IE5.5, Opera, Netscape on my Win98 machine. ------------------------------------------------------------------------ [2002-06-18 03:57:27] ad@premiere-host.com I have tried flushing the caches and that has no effect. I also tried $_SERVER[..] with no luck. I also loaded the files to my remote (Apache) server where it performs correctly. So, I deduce, that it is the localhost configuration of Opera and Win98 that produces this problem and it is not truly a PHP problem. I have demonstrated that 1. Opera under Windows sees phpinfo() and within that $PHP_SELF correctly. register_globals is ON. 2. In the code under consideration, URL's can be generated by the PHP and are correctly presented in the output HTML. Only $PHP_SELF is ignored. It is not ignored in this code under IE5.5. That said, it seems that there are two possibilities both of which seem pretty bizarre. 1. Some aspect of my code under Opera inhibits the action of $PHP_SELF replacement. But other globals and other variables are replaced ok. 2. Opera is somehow snipping out the link - but how would it know that the link is created by $PHP_SELF, if the same link is created in other ways it remains in place. Opera say they are working on it, but next week. ------------------------------------------------------------------------ [2002-06-14 15:58:37] sniper@php.net Could you try using that instead? e.g $_SERVER['PHP_SELF'] instead of $PHP_SELF as that is the preferred way to access these. Also, are you sure the page is not cached by IE? as if this is server side issue if any, not browser.. (same cache thing goes for Opera too) Try flushing the caches on both browsers. ------------------------------------------------------------------------ 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/17755 -- Edit this bug report at http://bugs.php.net/?id=17755&edit=1

« previous php.bugs (#11523) next »