dagnasty Posted July 3, 2006 Share Posted July 3, 2006 I've looked everywhere for help and searched this forum as well, but I can't seem to find the function that does what I need.So I'm trying to figure out how to grab each torrent url from this page[url=http://torrentspy.com/rss.asp?mode=search&query=movie&db=3]http://torrentspy.com/rss.asp?mode=search&query=movie&db=3[/url]into an array.My guess is to use something similar to preg_match but that only grabs the first finding it spots.So how would I go about grabbing each seperate url? Someone, PLEASE :) I'm going nuts! Quote Link to comment https://forums.phpfreaks.com/topic/13510-grabbing-multiple-urls-in-a-page-into-array/ Share on other sites More sharing options...
.josh Posted July 3, 2006 Share Posted July 3, 2006 check this thread out. someone asked for something similar. you should be able to simply tweak the preg_match expression to fit your needs. if you need help with the regex expression, head over to the regex forum it's there specifically for regex questions cuz it's a pretty popular topic. http://www.phpfreaks.com/forums/index.php/topic,99198.msg390571.html#msg390571edit:oh yeah, you probably don't need the inner foreach loop that loops through the movie type array, so get rid of that. Quote Link to comment https://forums.phpfreaks.com/topic/13510-grabbing-multiple-urls-in-a-page-into-array/#findComment-52292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.