Header("Content-type: image/png");
$height = rand(0,300);
$width = rand(0,400);
$im = ImageCreateTrueColor($width, $height);
$y=0;
$color = ImageColorAllocate($im, rand(0,255), rand(0,255), rand(0,255)); while($y<$height){
$x=0;
while ($x<$width){
imagesetpixel($im,$x,$y,$color);
$x=$x+1;
$color = ImageColorAllocate($im, rand(0,255), rand(0,255), rand(0,255)); }
$y=$y+1;
}
ImagePNG($im);
?>

RELOAD PAGE