Jump to content

Dynamically Genetrate RAM (Real Media) Text Files


willpower

Recommended Posts

Hi

 

I am working on a record company's site.  They offer a selection of track snippets for stream/download.  I would like to be able to dynamically generate the RAM (text File) to save manual input in the DB. 

 

Currently each RAM file has to be uploaded everytime a new track is added....but I'd like to have this created on the fly when a user is browsing the site.

 

user selects track...is forwarded to the dynamically generated RAM file...which in turn selects the appropriate media.

 

I can't think how i'd get this to work as I am trying to create a text file that is parsed rather than a peice of HTML that is read by a user.  Perhaps on the server I'd have to add PHP Parsing to the RAM mime type?

 

Any thoughts appreciated.

 

Will

i know have this...but its creating a general error when trying to open up real player....any ideas?

 

<?

 

$track=$_GET['track'];

header('Content-type: audio/x-pn-realaudio');

header("Content-Disposition: inline; filename=".$track.".ram");

 

print "http://www.mysite.co.uk/assets/media/".$track."rm";

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.