Reply to Re: [PHP] Problems with headers

Your name:

Reply:


Posted by Chris Shiflett on 09/22/05 05:25

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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация