Re: header redirect not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pablo Gosse wrote:
However, and this is even stranger to me, if I add the following after
the call to header()

die('foo');

the page redirects to the correct url.

I remove die('foo'); and it redirects to itself again.

That makes it sound like there is another call to header() somewhere that overwrites your Location header. Try using something like LiveHTTPHeaders to see exactly what your 302 response looks like. You can also grep through your source for header.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux