server side redirects

From: Date: Thu, 04 Mar 2004 00:24:53 +0000
Subject: server side redirects
Groups: php.general 
Request: Send a blank email to php-general+get-179397@lists.php.net to get a copy of this message
Hi, I have a page that checks to see if a session exists and if so does a server side redirect - i tired using header("Location: membersArea.php"); but I got an error about headers already sent, guess this is because I have already output html before this php command. So I tried include ("membersArea.php"); this kind of worked but because I am using php includes for my website header and footer I got strange results when the webpage was rendered. Therefor I used echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=membersArea.php\">"; This works but are there any drawbacks? i.e. is there a more elegant way to deal with my situation? Is this method supported by all browsers etc.. Cheers. Matt

« previous php.general (#179397) next »