Re: Am i crazy? - Solved.
| From: | Martin | Date: | Mon, 05 Nov 2001 03:25:46 +0000 |
| Subject: | Re: Am i crazy? - Solved. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73443@lists.php.net to get a copy of this message | ||
Tom Carter wrote:
> well when you were using echo $name to test then you were outputting html,
> hence no redirect...
I've tried both w/ and w/o the echo. No difference.
>if your php is set up in such a way as to suppress
> errors then you wouldn't have been warned about it..
No, nothing is being output the page starts with <?.
>check that nothing
> else is being outputted, eg a space before the first <?. If that doesn't
> fix it turn error reporting down to its lowest level.
But ...
error_reporting(E_ALL) ... that did it. Apparently what the problem was is
that in an included file there were two trailing spaces after the ?>.
Making that page end with ?> fixed the redirect.
Thanks to everyone.
Martin S