Re: How to properly serve a file via a wrapper.

From: Date: Tue, 08 Dec 2009 15:12:32 +0000
Subject: Re: How to properly serve a file via a wrapper.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-300312@lists.php.net to get a copy of this message
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

« previous php.general (#300312) next »