/*
For ibby
*/

PHP Code: 
<?
    $request_url 
='http://www.besthostingforums.com/';
 
    
$ch curl_init();
    
curl_setopt($chCURLOPT_URL$request_url);    // The url to get links from
    
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);    // We want to get the respone
    
$result curl_exec($ch);
 
    
$regex='|<img.*?src="(.*?)"|';
    
preg_match_all($regex,$result,$parts);
    
$links=$parts[1];
    foreach(
$links as $link){
        echo 
$link."<br>";
    }
    
curl_close($ch);
 
?>
Outputs->
_Vick Reviewed by _Vick on . [PHP] Grab all img links from html/webpage /* For ibby */ <? $request_url ='http://www.besthostingforums.com/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $request_url); // The url to get links from curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // We want to get the respone Rating: 5