I have been looking and looking for an easy way to do this but i cant find anything. Basicly I need to be able to upload (Via PHP, which isnt hard) a m3u file and the PHP Script then strip out every 2nd line, remove the gumpf from the start and get it ready for me to insert into mysql. I can do the upload and mysql bit - im just stuck on the m3u stripping.
here's a snip from an m3u of mine (its the start of it)
I don't know too much about the m3u format. I would like to help you out but I have a quick question for you first. Is the "#EXTINF:140, Title........." stuff in a variable or are you pulling this info from a file? Also does all of the songs have this same format where it is the number first, band second and the title third? If so then we could use maybe the explode function in PHP.