I have a site that have these lines involved:
I have made a function that is trying to grab the img address. But I cannot make a good pattern for it.HTML Code:... <div class="post_icon"> <div class="post_icon_overlay"> </div> <img src="http://localhost/wp/65a39792ad0fc80.jpg"> </div> ...
can any one help?PHP Code:function GetImg($pageurl){
$contents = @file_get_contents($pageurl);
if (!$contents) return FALSE;
preg_match(' ??? ', $contents, $matches);
return $matches[1];
}



Reply With Quote

thank you.


Bookmarks