willpower Posted June 18, 2007 Share Posted June 18, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/56020-dynamically-genetrate-ram-real-media-text-files/ Share on other sites More sharing options...
willpower Posted June 18, 2007 Author Share Posted June 18, 2007 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"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/56020-dynamically-genetrate-ram-real-media-text-files/#findComment-276688 Share on other sites More sharing options...
willpower Posted June 18, 2007 Author Share Posted June 18, 2007 *BUMP** Quote Link to comment https://forums.phpfreaks.com/topic/56020-dynamically-genetrate-ram-real-media-text-files/#findComment-277153 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.