Playing music files with php

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
mscrilla
Forum Newbie
Posts: 3
Joined: Sat May 30, 2009 6:06 pm

Playing music files with php

Post 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!
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: Playing music files with php

Post 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.
Post Reply