webster13045
11-15-2007, 01:10 AM
need a code that will fetch 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
need a code that will fetch 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
Where do you plan on fetching these files from?
webster13045
11-15-2007, 01:47 AM
they will be in a directory on my server
all the songs will be from creative online users
they will be in a directory on my server
all the songs will be from creative online users
Oh ok, your script should be rather simple to write then since you're not actually fetching anything!
I don't know enough about the flash player you've chosen to utilize to give an example at this point.
JW MP3 player is a popular flash mp3 player. It utilizes XML (ATOM, RSS, XSPF) to provide file location, images, title, cations, etc... to the actual player like so:
<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<title>Song title</title>
<creator>Name of Band</creator>
<location>/location/of/file.mp3</location>
</track>
</trackList>
</playlist>
With this model, you could do a whole bunch of things... and it's free for non commercial usage! Let us know what you're using and someone or myself will be able to provide you a code sample!
webster13045
11-15-2007, 03:05 AM
if you look here you can see the player
http://resellerrat.com/free/
i want it so all they have to do is click play and hear the song
the site does not require a mysql database
if you look here you can see the player
http://resellerrat.com/free/
i want it so all they have to do is click play and hear the song
the site does not require a mysql database
Hmmm, I can't get the player on the page to play the song they've provided. When I D/L the song I have no problems listening to the song they've provided in a player(itunes) though!
webster13045
11-15-2007, 04:00 AM
yea thats because i don't have a code or script to fetch the file thats what im after
Shouldn't this script facilitate the playing of the file for you? I don't understand why the player is shown on the page if it doesn't work or isn't aware of the file it should be playing.
Maybe I'm confused, is this your script?
webster13045
11-15-2007, 04:15 AM
i added the the player as a plugin kinda im just in need of the php or a script that will fetch the audio files
nope its a friends script open source free