You are here: Re: What content-type for .wmv files? « PHP Programming Language « IT news, forums, messages
Re: What content-type for .wmv files?

Posted by Peter van Schie on 10/29/39 11:33

Jerry Sievers wrote:
> A bit OT as this could pertain to perl CGIs too, etc.
>
> I have a php script that is hit, takes a file ID as GET
> parameter... does various checks including matching PHPSESSID to make
> sure the user is allowed to view the video file.
>
> Once the script determines that all is well, it (currently) puts out
> two headers content-type and content-disposition and then does a
> readfile(somevid.wmv) to send the output to the browser.
>
> header('Content-type: video/x-ms-wmv');
> header("Content-disposition: inline; filename=\"$id.wmv\"");

Hi Jerry,

I don't really understand why you do a readfile(somevid.wmv) if you
already send the header:
header("Content-disposition: inline; filename=\"$id.wmv\"");

Anyway, the content-type header is right; video/x-ms-wmv is the right
content type of a wmv file.

HTH.

Peter.
--
http://www.phpforums.nl

 

Navigation:

[Reply to this 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

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