PHP Code

Discussion in 'PHP' started by webster13045, Nov 14, 2007.

  1. #1
    need a code that will fetch the music files so a user can play the song if that makes any sense


    so i can make a file like getsong.php or something to that affect

    i allready have the player it is a little flash player i just need some sort of code or script to fetch the songs
     
    webster13045, Nov 14, 2007 IP
  2. wassim

    wassim Well-Known Member

    Messages:
    322
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Hi,

    Why would you fetch the song instead of just pointing the player to the path of that song? Is it a security restriction? If so I can help you fix that.

    Regards.
     
    wassim, Nov 15, 2007 IP
    commandos likes this.
  3. webster13045

    webster13045 Peon

    Messages:
    878
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    what i want to do is make some sort of php file that will fetch the song so when a user wants to hear the song all they have to do is click play
     
    webster13045, Nov 15, 2007 IP
  4. AdnanAhsan

    AdnanAhsan Well-Known Member

    Messages:
    601
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #4
    very simple, make a script in php, use GET method for file name or id whatever, or setup a database to make it easy.
     
    AdnanAhsan, Nov 15, 2007 IP
  5. msaqibansari

    msaqibansari Peon

    Messages:
    84
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why don't you use FLASH player for that purpose. Flash has a such type of features.
     
    msaqibansari, Nov 15, 2007 IP
  6. webster13045

    webster13045 Peon

    Messages:
    878
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    what flash player are you talking about?
     
    webster13045, Nov 15, 2007 IP
  7. wassim

    wassim Well-Known Member

    Messages:
    322
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    110
    #7
    Hi,

    It seems I didn't make myself clear, you can code an mp3 player in flash, you feed this player the url to the mp3 file and the player takes care of the rest i.e. it streams and plays the mp3.

    Look at this example : http://www.sidani.info/test/zulplayer/
     
    wassim, Nov 16, 2007 IP