channel[0]->item as $item) { if($item) { $title = strip_tags($item->title); $description = strip_tags($item->description); $img = imagecreatefromgif('cisco.gif'); $color = imagecolorallocate($img, 0x00, 0x66, 0xCC); $txt_color = imagecolorallocate($img, 0x12 ,0x07 ,0x07 ); $text = word_wrap($description); // // imagestring($img, 3, 1, 2, $title, $color); //$title=explode(" ",$title); $value= explode(" ",$text,16); //$str = array($value); //$white = imagecolorallocate( $image, 255, 255, 255 ); imagettftext( $img , 9 , 0 , 8, 70, $txt_color , $font_regular, $title ); //imagettftext( $img , 9 , 0 , 8, 70, $txt_color , $font_regular, $description); //imagestring($img, 1 , 1, 50 ,$title, $color); //imagestring($img, 1, 1, 60, $value , $color); echo "\nTest Text to Image\n"; echo "\n"; if(!imagegif($img, 'feedburner-readers.gif')) { echo "

Image not created!

"; } else { echo ''; } echo "\n"; exit; } } ?>