Search found 4 matches

by RipBurn
Wed Oct 30, 2002 10:27 pm
Forum: PHP - Code
Topic: How to stream an MP3 file?
Replies: 9
Views: 6385

OK.. I've had a look at Zina (Andromeda clone) and found this: header("Content-Disposition: inline; filename=playlist.m3u"); header("Content-type: audio/mpegurl"); header("Cache-control: private"); #IE seems to need this. echo $content; The content of $content is someth...
by RipBurn
Wed Oct 30, 2002 9:09 pm
Forum: PHP - Code
Topic: How to stream an MP3 file?
Replies: 9
Views: 6385

Yes.. I agree. At present my browser, IE6, responds with the option to Open or Save when I click on any direct MP3 link. But several PHP apps I have looked at (eg, Andromeda, Zina) start a single MP3 file streaming (via Winamp on my PC) when I click on the 'Play' link. So what is being sent from the...
by RipBurn
Wed Oct 30, 2002 8:22 pm
Forum: PHP - Code
Topic: How to stream an MP3 file?
Replies: 9
Views: 6385

Thanks.. But I have no problem making a playlist of all the audio files in a directory. All I need is the code to start streaming a single file only. Winamp is only my preferred application, but users may use others eg. Windows Media Player. Clicking on the 'play' link (which cannot link directly to...
by RipBurn
Wed Oct 30, 2002 6:55 pm
Forum: PHP - Code
Topic: How to stream an MP3 file?
Replies: 9
Views: 6385

How to stream an MP3 file?

<newbie alert> I have been trying to find/write some code to stream a single MP3 file when a user clicks on the play icon of the audio file they want to hear. The icon does not (and must not) provide a direct link to the .mp3 file or a .m3u file. I have tried a number of scripts, the closest I have ...