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" <[EMAIL PROTECTED]>
To: "Clayton Dukes" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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 @@
> [EMAIL PROTECTED]
> http://www.albasoftware.com
> http://www.phpauction.org
> http://www.gianlucabaldo.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]