Re: server side redirects

From: Date: Thu, 04 Mar 2004 13:23:47 +0000
Subject: Re: server side redirects
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179437@lists.php.net to get a copy of this message
On Thu, 4 Mar 2004, matthew oatham wrote: > 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 HTTP 1.1 needs the redirect string of the form: Location: http://hostname/resource Most of the browsers are tolerant in this case though. But it would be good idea to stick with standards. > this is because I have already output html before this php command. So I Verify your PHP scripts. Make sure that there is no character ( space character or even empty lines) lying around outside PHP open/close tags. Avoid putting new lines, spaces, etc.. outside PHP open/close tags especially while writing library files which are meant for include-ing. best Anil -- Linuxense Information Systems Pvt. Ltd., Trivandrum, India http://www.linuxense.com/

« previous php.general (#179437) next »