i have error for this code:
<?php
//set up image
$height=200;
$width=200;
$im=200;
$im=ImageCreate($width,$height);
$white=ImageColorAllocate($im,255,255,255);
$black=ImageColorAllocate($im,0,0,0);
//draw om image
ImageFill($im,0,0,$black);
ImageLine($im,0,0,$width,$height,$white);
ImageString($im,4,50,"Sales",$white);
//out image
Header("Content-type:image/png");
ImagePng($im);
//clean up
ImageDestroy($im);
?>
screen output :
Fatal error: Call to undefined function: imagecreate() in C:\vuonlen\practice\createimage\simplegraph.php on line 6
Please help me , thanks