Re: PHP Redirect / header("location: ")

From: Date: Fri, 09 Nov 2001 09:00:28 +0000
Subject: Re: PHP Redirect / header("location: ")
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74009@lists.php.net to get a copy of this message
Make sure that there is no output from your PHP script - or any HTML code whatsoever - before you call the header function. Cheers Scott ----- Original Message ----- From: "phantom" <phantom@phantomcougar.com> To: <php-general@lists.php.net> Sent: Friday, November 09, 2001 11:01 AM Subject: [PHP] PHP Redirect / header("location: ") > I am trying to set up a redirect scirpt that in ASP was > response.redirect(escape("newpage.asp")). > > I tried in PHP >> header("location: newpage.php") > > but all i got was an error message saying that my header content had > already been sent. This PHP script was above the html script. > > Am I doing something wrong? Thank you. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#74009) next »