<?php
$animage = imagecreate (200, 200);
$red = imagecolorallocate ($animage, 255, 0, 0);
imagerectangle ($animage, 0, 0, 200, 200, $red);
$white = imagecolorallocate ($animage, 255, 255, 255);
imagestring($animage, 5, 45, 50, "Hello World!", $white);
imagegif ($animage);
header ("Content-type: image/gif");
imagedestroy ($animage);
?>
|