RE: [PHP] header("Location:") problem with Netscape

2002-03-14 Thread Matt Schroebel

It's not $PHP_SELF that's the issue here -- well it was probably blank because either 
register_globals is off or you were in a function and didn't global it.  The real 
trouble is that. IE < v6.0 is forgiving and if the action="" is blank sends the 
request to the current page. So you feel comfy and think all is well, when in fact you 
have an empty action on your form.  Incidentally, Microsoft changed this and I.E. 6.0 
behaves just like Netscape 4.7.

> -Original Message-
> From: Steven Walker [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 14, 2002 1:52 PM
> To: Jeff Bearer
> 
> 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.
> 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] header("Location:") problem with Netscape

2002-03-14 Thread Steven Walker

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
[EMAIL PROTECTED]

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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php