php fetchpage() function help, identifying image sizes from a url in php
<p>hey guys so im building an application and one of teh features it will have is the ability to show photo links from twitter inline sort of like what tweetdeck has done in their chrome browser version and sites like crowdreel have been able to do, i spent some time researching how to grab image tags from urls on google and found this fantastic script <a href="http://www.bitrepository.com/extract-images-from-an-url.html" rel="nofollow">http://www.bitrepository.com/extract-images-from-an-url.html</a></p>

<p>the script is great and does exactly what i need, however now my challenge is that the array returned from the links returns every image in the page including thumbnails ads etc, so a link to a page like this: <a href="http://lockerz.com/s/69901787" rel="nofollow">http://lockerz.com/s/69901787</a></p>

<p>will return an array with quite a few image links to sort through,
however what i need is a link to the main image so that i can display it inline with tweets, my idea is that i run some sort of code to figure out which of the images in the page is the largest? what are your thoughts on this? is this the right method or is there something easier thats built into php perhaps? thanks for all your help guys!</p>
