Reply to protecting mp3's - follow up

Your name:

Reply:


Posted by Brian Huether on 12/02/06 15:49

I have made some progress regarding my previous post. I have public_html and
audio as folders at the same level. I am trying to allow visitors to stream
the audio in the audio folder using the following:

$link = "../audio/".$file;

$handle = fopen($link, 'r');


header("Content-type: audio/mp3");
fpassthru($handle);

I get a valid handle but the fpassthru does not work properly. Media Player
launches, hangs for a while then says it reached the end of the file. No
audio plays.

Any ideas?

thanks,

brian

[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

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