Posted by malatestapunk on 12/04/06 05:28
And watch out for things like spaces or other characters in the output
before you dump your mp3. I once had a problem with readfile() and
images that took hours to debug - it turned out my images weren't
displaying because of a single space character from some included file.
You may want to use output buffering up to just before
readfile/fpassthru to prevent such things from happening.
Norman Peelman wrote:
> "Brian Huether" <bhuetherNO@comcastSPAM.net> wrote in message
> news:neednVcT8u3VOuzYnZ2dnUVZ_qCdnZ2d@comcast.com...
> > I have since learned that the proper way to stream is to create an m3u
> file
> > which will cause the default browser to stream the mp3. But my audio files
> > are external to the web dir. And I simply can not get fpassthru to work.
> >
> > thanks,
> >
> > brian
> >
> >
>
> You may need to open the file in binary mode as well:
>
> fopen($filename,'rb');
>
> or check into the 'readfile()' function as you need no fopen() to dump the
> file to the client...
>
> Norm
> --
> FREE Avatar hosting at www.easyavatar.com
Navigation:
[Reply to this message]
|