undefined function imagecreate()
| From: | Marco Moonen | Date: | Thu, 07 Aug 2003 15:31:58 +0000 |
| Subject: | undefined function imagecreate() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158658@lists.php.net to get a copy of this message | ||
Just new at PHP and learning.
Trying to execute simple script to draw a line:
<?php
//draw2.php
Header("Content-type: image/jpeg");
$image = ImageCreate(200,150);
$gray = ImageColorAllocate($image,204,204,204);
$blue = ImageColorAllocate($image,0,0,255);
ImageLine($image,10,10,150,30,$blue);
ImageArc($image,150,65,70,70,0,360,$blue);
ImageJPEG($image);
ImageDestroy($image);
?>
Browser returns:
<br />
<b>Fatal error</b>: Call to undefined function: imagecreate() in
<b>c:\inetpub\wwwroot\draw4.php</b> on line <b>4</b><br />
Why is imagcreate() not understoodMarco