<?php $a =file_get_contents("http://blablabla.com/banner.html"); preg_match ("#<hr>]*>.*</hr>]*>#isU", $a, $regs); header ("Content-type: image/png"); $im = @imagecreatetruecolor(120, 20) or die("Cannot Initialize new GD image stream"); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "'.$regs[0];.'", $text_color); imagepng($im); imagedestroy($im); ?>