Re: Redirect not working on server

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

 



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

-- 
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