Re: Redirection troubles...

From: Date: Mon, 28 Aug 2000 02:31:42 +0000
Subject: Re: Redirection troubles...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13889@lists.php.net to get a copy of this message
Remeber that you can only use header() before *ANY* content is sent to the browser, this includes any whitespace as well as normal HTML. Comron ----- Original Message ----- From: "Vince Horst" <vhorst@mn.rr.com> To: <php-general@lists.php.net> Sent: Sunday, August 27, 2000 7:13 PM Subject: [PHP] Redirection troubles... > I'm very new to PHP (~2 days), so bear with me... > > I'm trying to redirect one php page to another using the following syntax: > header("Location: http://www.php.net"); > > The problem is that I can't write new header info when the headers have > already been sent. My question is this. How do I buffer the dynamic php page > so that the server sends it to the client only when I tell it to, or when > the script finishes. > > I am an ASP/Windoze programmer by trade so this is all new to me: am I > missing something intrinsic to the operation of Apache/PHP that I would not > be aware of as a Wnidoze programmer? > > Thanks in advance > > -- > Vince Horst > > > > -- > 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 (#13889) next »