I want to use PHP to serve up other files than HTML. Specifically, I want to create a Real Audio "RAM" file. It seems to be OK if I set the MIME type in the header, thus:
<?php
Header("Content-type: audio/x-pn-realaudio");
echo "pnm://$HTTP_HOST:7070/music.rm";
?>
Can anyone advise if there are potential pitfalls in this approach? As I say, it seems to work perfectly on this system, but I'm not able to test it on other platforms.