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
Navigation:
[Reply to this message]
|