Reply to What content-type for .wmv files?

Your name:

Reply:


Posted by Jerry Sievers on 10/28/69 11:33

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\"");

The script is an index page which is being called like;

http://www.somdomain.com/somedir/?id=123 ...or
http://www.somdomain.com/somedir/index.php?id=123

Anyway, the problem is Windows media player doesn't want to launch the
file.

I'd appreciate a tip from anyone who's R&D'd this recently. Not sure
if one or both of my headers is wrong and/or naming the index file to
index.wmv would help (I may try this next).

Thanks

--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.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

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