Stream Real Audio (.rm) Files?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Mr. Tech
Forum Contributor
Posts: 205
Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia

Stream Real Audio (.rm) Files?

Post by Mr. Tech »

How do I create a script that streams real audio (.rm) files which hides actual file location to prevent downloading.

Thanks
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

maybe it's a simple as

Code: Select all

header('Content-type: audio/x-pn-realaudio');
header( ... );
readfile($theAudioFile);
Mr. Tech
Forum Contributor
Posts: 205
Joined: Tue Feb 11, 2003 4:18 pm
Location: Australia

Post 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!
Post Reply