Reply to Re: protecting mp3's - follow up

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация