hi, i'm a newbie here..i just installed PHP 4.3.10 in my computer...i want to use imagecreate() function and i have a slight problem with it...everytime i try to run this script (which is the example from php.net):
<?
header("Content-type: image/png");
$im = @imagecreate(100, 50)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
the browser said "The Image "http://localhost/belajar/imagetest.php" cannot be displayed, because it contains errors"
I hope somebody can help me with this...thx