How to properly serve a file via a wrapper.
am 08.12.2009 16:11:19 von Michael Peters
Please help.
I thought I had this squared away, but apparently not.
I need to be able to use a php wrapper to serve a file stored outside
the web root.
Works great for downloads / images - but my wrapper seems broken for
media files to be played.
My wrapper:
http://www.shastaherps.org/bugs/rdb_audio.phps
Demonstration of issue:
http://www.shastaherps.org/bugs/wrapperBug.html
What am I missing??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: How to properly serve a file via a wrapper.
am 08.12.2009 16:12:32 von Ashley Sheridan
--=-EA+3BVMgDLMXfwYdUPC9
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Tue, 2009-12-08 at 07:11 -0800, Michael A. Peters wrote:
> Please help.
>
> I thought I had this squared away, but apparently not.
> I need to be able to use a php wrapper to serve a file stored outside
> the web root.
>
> Works great for downloads / images - but my wrapper seems broken for
> media files to be played.
>
> My wrapper:
>
> http://www.shastaherps.org/bugs/rdb_audio.phps
>
> Demonstration of issue:
>
> http://www.shastaherps.org/bugs/wrapperBug.html
>
> What am I missing??
>
What's the code to your wrapper? If you're using sessions as some form
of validation, you should be aware that media player plugins don't send
full headers to the server when requesting the file, including sessions
headers.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-EA+3BVMgDLMXfwYdUPC9--