analizzando il sito la cosa che ti conviene fare è parsare l'ultimo post del feed rss:
Codice PHP:
$feedUrl = 'http://www.dieselsweeties.com/ds-unifeed.xml';
$sxml = false;
if(ini_get("allow_url_fopen")){
$sxml = @simplexml_load_file($feedUrl,"SimpleXMLElement", LIBXML_NOCDATA | LIBXML_NOBLANKS);
if(!$sxml){
$sxml = @simplexml_load_string(file_get_contents($feedUrl),"SimpleXMLElement", LIBXML_NOCDATA | LIBXML_NOBLANKS);
}
}
if(!$sxml && function_exists('curl_init')){
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $feedUrl);
curl_setopt($ch, CURLOPT_HEADER, 0);// no http header info
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
// grab URL and pass it to the browser
$sxml = simplexml_load_string(curl_exec($ch),"SimpleXMLElement", LIBXML_NOCDATA | LIBXML_NOBLANKS);
// close cURL resource, and free up system resources
curl_close($ch);
}
if(!($sxml))
return false;
//qui ottieni il tag img che ti interessa
echo $tagImg = ($sxml->channel->item->description)."
";
// mentre qui il valore del parametro src del tag
preg_match("/src=\"[^\"]*\"/", $tagImg, $res);
echo $srcImg = preg_replace(array("/src=/", "/\"/"), "", $res[0]);