well it was for a gd image, rather than just html output - but ive got it working now! thanks for everyones help!
but! i have another query for u!
ive got the image displaying on a page, but how can i get the $text var out of the image for use else where.. if you look at the code below u may be able to see what i mean
img.html
<?
$chars = 10 ;
$text = rand(0,999999) ;
$text = md5($text) ;
$text = substr($text, 32-$chars) ;
$text = str_shuffle($text) ;
$text = wordwrap($text, 1, ' ', 1) ;
$x = 150 ;
$y = 35 ;
Header("Content-type: image/Jpeg") ;
$img = @ImageCreate ($x, $y) ;
$white = ImageColorAllocate ($img, 255, 255, 255) ;
$black = ImageColorAllocate ($img, 0, 0, 0) ;
ImageString ($img, 3, 8, 5, $text, $black) ;
ImageString ($img, 1, 85, 25, "Bot Stopper", $black) ;
ImageRectangle ($img, 2, 2, $x-2, 22, $black) ;
ImageLine ($img, 6, 8, 99, 11, $black) ;
ImageLine ($img, 99, 11, 142, 8, $black) ;
ImageJpeg($img) ;
ImageDestroy ;
?>
index.html
<img src="img.html"><br>
<?=$text?>