> Ok, I'm new to programming in PHP. What I'm trying to do is retrieve the
> song list with play links off of my bands' page at Mp3.com.  Ultimately
> I want to build it into a function I can call with an array of song
> names and it will return the html formatted as I like

COOL!!!

http://mp3.com/stations/NoGenre

> echo eregi_replace('<td><phrase><a
> href="http://my.mp3.com(.*)</tr></table>',
> '</td><td nowrap></td></tr></table></td>',$out[0]);
>
> What happens though is it takes the chuck out of the first occurance,
> and then prints the rest of the page unchanged. I want to do further
> formatting to the code after I remove these chunks though, such as
> replacing the img reference links and such.

I can't handle ereg, so would be doing a lot of http://php.net/strtok or
http://php.net/explode here...

> I'm starting to think I'm going about it wrong in the first place. I'm
> thinking I should just pull out the m3u and mp3 links, and use them

That would actually probably be easier.

Suck down the .m3u file, and just use explode("\n", $m3u) on it.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to