We help IT Professionals succeed at work.

Streaming MP3s using PHP

rhinez0rz asked
Medium Priority
Last Modified: 2008-03-04
Hi there,

I wonder if anyone could point me to an article which shows anyone how to make a streaming mp3 player using php. I'd like an interface that shows what song is playing an the ability to stop/play the stream. The mp3s should play in random order as well.

Watch Question

Top Expert 2006

Why do you need to do this in php?

php is a serverside application, not clientside.


You will need a client side ActiveX to accomplish this. It's quite complicated to do and will only work in IE.
See this:
http://www.gieson.com/Library/projects/mp3/  (Demo)
http://www.wimpyplayer.com/ (Script Homepage)

While that's not an article on how to make your own, perhaps that mp3 player will work for what you're wanting to do.  It has a PHP version with MySQL support :)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

kPlaylist is a multi-lingual Web-based music streaming system. It can be used as a private or public jukebox. It reads files as MP3, Ogg, WMA, and others and includes a user signup tool, search engine, user editor, personal options, personal and shared playlists, listings of new and popular music, a randomizing feature, and a quick way of browsing albums. Upgrading and installation is automatic.

The MP3 Streaming DownSampler for PHP is written with cable modem/DSL users with low upstream caps in mind. Using LAME, it dynamically downsamples a requested MP3 to a bitrate which can be streamed. It doesn't use temporary files, so you don't have to take the time to do any batching, and you just give it a directory with symlinks to your music in a place the Web server can reach. The interface is simplistic and fast, meant for immediate plug and play access.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.