Version: 5.0
Type: Sample Code (HOWTO)
Category: Graphics
License: GNU General Public License
Description: I'm Trying to install GD library and Jgraph, What i'm Trying to do is the example which is this one: And i dont know what is wrong, it is suppost to display a box. but i dont undertand why it doesnt do it.
<script language="php">
$im = @imagecreate( 150, 100)
or die ( "Cannot create a new GD image.");
$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 );
//header ("Content-type: image/png");
imagepng($im)
</script>
The What i Got from it is :
PNG