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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php