Page 1 of 1

Creating file dynamically Clarification Please read on

Posted: Mon Mar 03, 2003 5:28 am
by prasad90
Dear friends,

Thank you for your reply for my old posting.

It is actually *.ram file.

In fact I have lot of file music (more than 700) stored on my site and I have written a code in php so that once I have droped the file to my directory the index file automatically scans the directory and shows the link to the users in alphabetical order. this eliminates me for making new pages as i am keeping on adding new songs now.

And at present I am using real player embedded environment for making continues stream, so that users can make their own play list from the music collection I have got

But the problem is real player environment for adding new songs is rediculus.(It opens lot of unwanted windows) I can overcome this by dynamically creating a Temp file with *.ram extension with users data collected or send back the header with *.ram title.

So if any body knows how to create a text file (TEMP) with *.ram extension or how to fool users browser so that the user browser thinks that new ram file is comming and activate realplayer in his computer.

please post a reply
:)

Posted: Mon Mar 03, 2003 5:53 am
by volka
therefor a simple script like

Code: Select all

<?php
header('Content-type: audio/x-pn-realaudio');
echo 'rtsp://realserver.yoursite.com/myfile.rm';
?>
should do, but you have to test wether a another rtsp://... will add an additional source to the playlist (as mentioned realplayer is banned from my system ;) )