PHP, GD & Win
| From: | Euman | Date: | Fri, 19 Sep 2003 04:49:56 +0000 |
| Subject: | PHP, GD & Win | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-163098@lists.php.net to get a copy of this message | ||
Hello all,
Im new to PHP but from what Ive read, PHP 4.3.3 has
GD capability built-in, but, when I run a simple test like:
<?php
// create the image
$img = ImageCreate(200,200);
$bg = ImageColorAllocate($img,0,0,0);
$tx = ImageColorAllocate($img,255,128,128);
ImageFilledRectangle($img,0,0,200,200,$bg);
ImageString($img,3,70,90,"it works !",$tx);
header("content-type: image/jpeg");
ImageJPEG($img);
?>
I get this:
Fatal error: Call to undefined function: imagecreate()
I would like to know how this works for Windows users.
Thanks