OK guys Cool.
I am looking for a custom playlist script for streaming real audio songs.
Any one who helps is GOD
GREETS 4S
Chr1s
09-17-2002, 04:36 PM
I believe you asked this same question a few days ago... You can check hotscripts.com...
jtrovato
09-19-2002, 02:28 AM
Well I wrote a recursive PHP script that reads all the directories below a single parent directory and finds all files with an MP3 extension. It then creates an m3u file, which is basically a text file with the FQD path to the MP3 for each MP3 file I have stored on my HD. Once it creates this file, it stores the following information in a MySQL database:
I have all my music filenames formatted as follows:
Lastname, Firstname - Song title
Artist - Song title
Below is the MySQL table structure:
CREATE TABLE `songs` (
`ID` int(10) unsigned NOT NULL auto_increment,
`Artist` varchar(100) NOT NULL default '',
`Song` varchar(100) NOT NULL default '',
`Path` varchar(255) NOT NULL default '',
`Num` int(10) unsigned NOT NULL default '0',
`Size` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`ID`),
KEY `ID` (`ID`)
) TYPE=MyISAM;
I wrote a search query that will search for what ever the user wants. It’s a very simple search page; it shows the song title and artist with a play button. Once the user clicks the play button it starts streaming the song to their media player of their choice. It doesn’t download the song to your computer, only the m3u file which if they were smart enough they could go to the temp directory open the file and see the path. Once they had the path they could grab the song to download. As of right now I have no idea how to stop that.
Well, If you like the code let me know, I’ll send it over to you
John