Re: Headers
| From: | (Richard Lynch) | Date: | Fri, 30 Jun 2000 21:08:19 +0000 |
| Subject: | Re: Headers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4150@lists.php.net to get a copy of this message | ||
In article <1877.000622@otamedia.com>, akul@otamedia.com wrote:
> 2. I want to use this function from non-interfaced pages, used only
> for data processing and redirecting. In ASP there is no problems:
> Response.Buffer=True, but PHP havn't buffering.
PHP4 has output buffering. Upgrade.
You might be able to try something like this:
<?php
if ($headersok = @header("X-Test-Headers-Sent: Bogus")){
//okay to send headers
}
else{
//headers already sent: too late.
}
?>
I'm not sure header() returns a value, nor what it might or might not
mean, so play around with it. Maybe check $php_errormsg instead of return
value from header() function.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)