Hi,
I was learning the image creation functions and copied the following code segment from PHP online manual at
http://us3.php.net/manual/en/function.imagecreate.php
I put the code in picture1.php and loaded it using firefox browser, I only see "http://localhost/picture1.php" in the bowser, rather than an image.
There must be something basic that I am missing???
<?php
header("Content-type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>