Page 1 of 1

Stream Real Audio (.rm) Files?

Posted: Tue Jul 01, 2003 4:07 am
by Mr. Tech
How do I create a script that streams real audio (.rm) files which hides actual file location to prevent downloading.

Thanks

Posted: Tue Jul 01, 2003 6:13 am
by volka
maybe it's a simple as

Code: Select all

header('Content-type: audio/x-pn-realaudio');
header( ... );
readfile($theAudioFile);

Posted: Tue Jul 01, 2003 5:58 pm
by Mr. Tech
volka wrote:maybe it's a simple as

Code: Select all

header('Content-type: audio/x-pn-realaudio');
header( ... );
readfile($theAudioFile);
Thanks man!

You're a life saver!

I only needed this:

Code: Select all

<?php
header('Content-type: audio/x-pn-realaudio'); 

readfile(Test.rm);

?>
Thanks agaiN!