PHP-generated realaudio file?

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
jencarnac
Forum Newbie
Posts: 2
Joined: Wed Jan 07, 2004 2:21 pm

PHP-generated realaudio file?

Post by jencarnac »

I've checked around and it seems like PHP has the capability to generate a ram file, just by sending the realaudio header. However, when I test this code (below), I just get a browser page with "http://www.domain.com/this.ram" printed in it.

Am I doing something wrong? Does this require that I be streaming from a Real server?

<?
header("Content-type: audio/x-pn-realaudio");
print "http://www.domain.com/$fileName.ram";
?>

Thanks
Post Reply