Re: header("Location:") problem with Netscape

From: Date: Thu, 14 Mar 2002 18:51:30 +0000
Subject: Re: header("Location:") problem with Netscape
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88551@lists.php.net to get a copy of this message
Jeff, I just had this problem! Using $PHP_SELF did not work with Netscape 4.7 for some reason. I was using it in form submissions and kept getting the error 'Method Not Allowed'. My fix was simple, I just hard coded the action url since. If you really need $PHP_SELF, I don't know what the fix is. I also tried getenv(PHP_SELF) and $_SERVER[PHP_SELF] without any luck. Steven J. Walker Walker Effects www.walkereffects.com steve@walkereffects.com On Thursday, March 14, 2002, at 10:29 AM, Jeff Bearer wrote:
I'm working on a app that uses the header("Location") is the middle of the file, but since I'm using output buffering it shouldn't matter. The application works fine in Mozilla, Konqueror, and IE, but not in Netscape 4 or 6. I don't get the error that the "headers have already been written" error, it just loads the page as if the header("Location:") was commented out. Some of my thoughts on the subject. I'm redirecting to $PHP_SELF is Netscape trying to be extra smart and think it doesn't have to refresh? I'm using gzip compression in output buffering, maybe there is a situation where Netscape 4 & 6 may not use the gzip compression, hence causing the output buffering not to work correctly? But if that was the case I should see the error about headers already been written. Any suggestions would be great, thanks. -- Jeff Bearer, RHCE Webmaster PittsburghLIVE.com 2002 EPpy Award, Best Online U.S. Newspaper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#88551) next »