PHP script Play online audio files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kunwarbs
Forum Newbie
Posts: 1
Joined: Sat Sep 18, 2004 12:54 am

PHP script Play online audio files

Post by kunwarbs »

Hi,
I want to know how to play audio files (mp3/rm) using php.
eg musicindiaonline.com

thanks
kunwarbs[/pg_man]
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you don't play them.. the server can "stream" them.. you just send the right headers and dump the file to the browser, generally...
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Yeah. The output will be handled by a client-side application, such as WMP 9, RealPlayer, QuickTime, or Winamp.

Remember, PHP is server-side. All the magic it does happens on the server.
Post Reply