Hello
PHP has been configured by default with the GD library like so: '--with-gd=shared'
How then do we use this library? I've tried a few different methods, including the example from PHP.net, which is this:
header ("Content-type: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$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);
ImagePng ($im);
?>
But they don't appear to work.. Has anyone successfully managed to use the GD library?
Cheers
Tom