Re: Redirect not working on server
| From: | Shawn McKenzie | Date: | Tue, 02 Jun 2009 20:07:50 +0000 |
| Subject: | Re: Redirect not working on server | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293507@lists.php.net to get a copy of this message | ||
revDAVE wrote:
> I found the answer here - I had --- whitespace & ... if <?php is at line 2
>
> Location:
> http://www.phpbuilder.com/board/showthread.php?t=10310794
>
> Blank space above the php tag or below the final php tag
> It is not intuitive but ...
>
> if <?php is at line 2 of your script and a blank line is above it then that
> can cause problems such as the php header function not working.
>
>
> =========================
>
>
> *So I just need to get this working... error_reporting(E_ALL);
>
> If I put this on a page isn't it supposed to override other server setting
> and display errors? It's not - This the page is blank - except for the echo
> test
>
>
Yes, but id display_errors = Off then you need to do:
ini_set('display_errors', '1');
--
Thanks!
-Shawn
http://www.spidean.com