Para mostrar el contenido del feed/rss con una imagen es muy facil, necesitaremos el class de el post anterior y algunas funciones de la libreria gd, tambien unas cuantas cosas que se incluiran en un archivo zip extraible.

Este es un ejemplo, así donde quiera que ponga la imagen siempre se actualizara sola.


Descargar!!

Codigo de fuente!:

<?
    class RssReader {
        var $url;
        var $data;

        function RssReader ($url){
            $this->url;
            $this->data = implode ("", file ($url));
        }

        function get_items (){
            preg_match_all ("/<item .*>.*<\/item>/xsmUi", $this->data, $matches);
            $items = array ();
            foreach ($matches[0] as $match){
                $items[] = new RssItem ($match);
            }
            return $items;
        }
    }

    class RssItem {
        var $title, $url, $description;

        function RssItem ($xml){
            $this->populate ($xml);
        }

        function populate ($xml){
            preg_match ("/<title> (.*) <\/title>/xsmUi", $xml, $matches);
            $this->title = $matches[1];
            preg_match ("/<link> (.*) <\/link>/xsmUi", $xml, $matches);
            $this->url = $matches[1];
            preg_match ("/<description> (.*) <\/description>/xsmUi", $xml, $matches);
            $this->description = $matches[1];
    }

    function get_title (){
        return $this->title;
        }

        function get_url (){
        return $this->url;
        }

        function get_description (){
            return $this->description;
        }
    }
/*
Codigo Programado por dedydamy

http://dedydamy.com

*/
$rss = new RssReader ("http://dedydamy.com/<b style="color: black; background-color: rgb(255, 255, 102);">feed</b>");//aqui donde esta http://dedydamy.com/<b style="color: black; background-color: rgb(255, 255, 102);">feed</b>  tienes que poner la url de tu <b style="color: black; background-color: rgb(255, 255, 102);">feed</b> o rss
header('Content-type: image/png');//decimos que la imagen sera formato png mediante las cabeceras
$image=imagecreatefrompng('fondo.png');//decimos el fondo que tendra (incluido, es blanco <img src="http://dedydamy.com/wp-includes/images/smilies/icon_biggrin.gif" alt=":D" class="wp-smiley"> )
$fuente='arial.ttf';//selecionamos la fuente del texto (incluido, arial)
$negro= imagecolorallocate($image,0x00,0x00,0x00);//damos color negro
$blanco= imagecolorallocate($image,0xff,0xff,0xff);//blanco..
$gris = imagecolorallocate($image, 128, 128, 128);//gris
imagecolortransparent($image, $blanco);//le damos trabsaparencia a la imagen basandonos en el color balnco
$posicion=1;//damos un dato para posicion
$numeracion=0;//y dato para numeracion
foreach ($rss->get_items () as $item){ //aca hacemos un foreach para el array de las entradas que se muestren en el <b style="color: black; background-color: rgb(255, 255, 102);">feed</b>
$posicion=$posicion+15;//sumamos 15 a la posicion (esto depende del fondo y del tamaño del texto)
$numeracion=$numeracion+1;//sumamos 1 a la numeracion
imagettftext($image, 10, 0,0,$posicion, $negro, $fuente, $numeracion.".-".$item->get_title());//imprimimos el titulo del post
}
imagepng($image);//mostramos imagen
imagedestroy($image);//la destruimos para liberar memoria
/*
Codigo Programado por dedydamy

http://dedydamy.com

*/
?>