|
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]
|