Re: redirect with header still not working
| From: | Chris Shiflett | Date: | Tue, 17 Apr 2007 19:31:18 +0000 |
| Subject: | Re: redirect with header still not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253118@lists.php.net to get a copy of this message | ||
Ross wrote:
> Have tried the full url for the header and it still doesn't work.
I forget what your exact issue is, but a good first step to take when
debugging a problem with header() is to replace it with echo. For example:
echo "Location: $url";
Instead of:
header("Location: $url");
Almost every problem I can recall someone having with header() was a
result of either:
1. Headers already being sent, as others have guessed.
2. The argument passed to header() being malformed, and the browser
doesn't interpret the malformed header as desired.
Hope that helps.
Chris
--
Chris Shiflett
http://shiflett.org/