Creating file dynamically Clarification Please read on

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
prasad90
Forum Newbie
Posts: 4
Joined: Sat Feb 22, 2003 8:31 pm
Location: india
Contact:

Creating file dynamically Clarification Please read on

Post 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
:)
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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 ;) )
Post Reply