Headers.. whose on first?
In my update file I have the following code (it is a PHP file):
function do_redirect ( $url )
Header ( "Location: $url" );
I get error of "Already Sent Headers" - from the reload statement.
How can I do a reload and then do a redirect?
You can't send new headers once any information has been sent to the browser. This means that their can have been no HTML before the header code, only PHP. Also, the PHP must not use any echo or print statements.
Thanks, that became clear now.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)