Page 1 of 1

Playing music files with php

Posted: Sat May 30, 2009 6:10 pm
by mscrilla
Hello,
I'm trying to build a site that plays some music files that I have. The way I've been setting it up is creating a database with filepaths for the actual mp3 files, and then my idea was to query the database to select specific songs and then play them one at a time. I've gotten up to the part of querying and finding song filepaths, but now I'm completely lost. How can I use these filepaths (e.g. C:\Documents and Settings\songs ....) that i get with my php code and deliver them to an embedded music player? I'm not even sure how to embed the music player properly. I'm running a WAMP localhost server right now, can anybody offer some guidance?
Thanks!

Re: Playing music files with php

Posted: Sun May 31, 2009 7:25 am
by Darhazer
Actually this is not a PHP problem, is it UI problem, as PHP is running on the server, and you want the sound to be played on the client. As far as I know JW FLV Media Player suports mp3 and it is easy to embed it... you can also search for "embeding media player" to embed the windows media player.