Re: Problems with headers

From: Date: Thu, 22 Sep 2005 02:25:11 +0000
Subject: Re: Problems with headers
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-222960@lists.php.net to get a copy of this message
Graham Anderson wrote:
Even though I am defining Content-type as 'video/quicktime', the output is still text/html Also, Content-Length is not outputting properly either :(
[snip]
header('Content-Type: video/quicktime'); header ("Content-Length:".strlen($xml));
You have a superfluous space in your Content-Type header, and you're missing a space in your Content-Length header. Those two need to share. :-) Your other error is due to output being generated prior to the header() calls. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/

« previous php.general (#222960) next »