|
Posted by Jerry Sievers on 10/22/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/
Navigation:
[Reply to this message]
|