SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Jul 2006
    Location
    New Zealand
    Posts
    1,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Music Playlist System

    Hi all i am wondering how can i go about creating a php playlist that display alll the mp3's in a certain folder and if the user has it coming from a website url like

    somedomain.com/music/thesong.mp3

    it will display it in the song information once on the script from the folder if its there and from the website which is stored in the database?

    How can this be done can anyone give me an examples i can work with?

    Thanks,
    William

  2. #2
    monitormensch oerdec's Avatar
    Join Date
    Sep 2004
    Location
    Hamburg
    Posts
    706
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi William,

    maybe this is not the appropriate forum for your problem.

    Anyway, I would use a flash player to play the songs. You could save information about the songs - i.e. meta information - in so called ID3 tags. Check http://getid3.sourceforge.net. There are many players that accept GET params to play a certain file. The playlist could be generated with PHP - it´s just a list of links.

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2006
    Location
    New Zealand
    Posts
    1,300
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice the Link of each song will be good but what happens if the user goes to the next page will it repeat the song as in start from the begining and also when the song that is playing finished the next one automatically starts with a button for the person to turn music off and start from begining?

    Thanks

  4. #4
    monitormensch oerdec's Avatar
    Join Date
    Sep 2004
    Location
    Hamburg
    Posts
    706
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When the user goes to another page the player will start from the beginning of a song ... or maybe it will play nothing at all if the param is missing. But you could use JavaScript and/or AJAX for pagination without reloading.

    By the way, you should search for some free players and check their behaviour.

  5. #5
    monitormensch oerdec's Avatar
    Join Date
    Sep 2004
    Location
    Hamburg
    Posts
    706
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I forgot another option. You could use or create a mp3 player incl. playlist entirely in flash.

  6. #6
    SitePoint Wizard REMIYA's Avatar
    Join Date
    May 2005
    Posts
    1,351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like this is a thread for the basic PHP forum.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •