Re: Problems with headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux