Re: content retrieval from mp3.com band pages - need help

From: Date: Thu, 08 Feb 2001 10:00:38 +0000
Subject: Re: content retrieval from mp3.com band pages - need help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38709@lists.php.net to get a copy of this message
> 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

« previous php.general (#38709) next »