Re: page redirect question

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

 



Victor C. wrote:
Is there anyway to redirect php page other than using
HEADER("LOCATION:URL") ?
Header can only be called if nothing is written to HTML... Is there anyway
around it?

You can use output buffering. Then it doesn't matter where you call header(). But if you do a redirect you should clear the output buffer before doing so to prevent that the output which has been done so far is send to the browser.


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