Re: Headers

From: Date: Sat, 17 Mar 2001 14:03:25 +0000
Subject: Re: Headers
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-44385@lists.php.net to get a copy of this message
Thanks, How do I do something like: if headers_sent=false include header.inc else some other thing Please forgive my inexperience, I'm still learning :-) Clayton Dukes ----- Original Message ----- From: "Gianluca Baldo" <webmaster@phpauction.org> To: "Clayton Dukes" <cdukes@cdukes.com> Cc: <php-general@lists.php.net> Sent: Saturday, March 17, 2001 8:55 AM Subject: Re: [PHP] Headers > Clayton, > PHP has a function for that: > > headers_sent > (PHP 3>= 3.0.8, PHP 4 >= 4.0b2) > headers_sent -- Returns true if headers have been sent > Description > boolean headers_sent (void) > This function returns true if the HTTP headers have already been sent, false otherwise. > See also header() > > Cheers, > Gianluca > > CD> I'm sure everyone's seen the following: > > CD> Warning: Cannot add header information - headers already sent by (output started > > CD> But, > CD> How can I add check to see if the header information has not been sent and add it if it hasn't (else just print without the header info)? > > > CD> TIA! > CD> Clayton Dukes > > > > > -- > ALBASOFTWARE > C/ Mallorca 186 - 3º 1ª > 08036 Barcelona (Spain) > Tel. +34 93454009 - +34 934549324 > Fax. +34 934541979 > @@ ICQ 47323154 @@ > webmaster@albasoftware.com > http://www.albasoftware.com > http://www.phpauction.org > http://www.gianlucabaldo.com > > > > -- > 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 (#44385) next »