GD installed but imageFUNCTIONS dont work
| From: | (Helmut Ott) | Date: | Tue, 27 Feb 2001 18:02:42 +0000 |
| Subject: | GD installed but imageFUNCTIONS dont work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-41851@lists.php.net to get a copy of this message | ||
Hi,
hopefully somebody can help to solve this miracle.
My phpinfo
My provider (and phpinfo) says GD <=1.62 is installed.
But when I run scripts using the php-imagefunctions
that require gd like
<?php
Header ("Content-type: image/jpeg");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "/path/arial.ttf",
"Testing... Omega: Ω");
ImageJPEG ($im);
ImageDestroy ($im);
?>
The lines containing the functions like createImage(), or ImagecolorAllocate() return error
messages.
How can I find out without doubt whether the functions work properly or not?
Every advice is appreciated.
Helmut