jamal
11-10-2002, 12:42 PM
Hi Guys,
I am trying to check if GD-library is working together with PHP but it failed. I have to run the below code to check it. I have already downloaded GD-1.8.4.
Please can anyone help me on how to configure graphics with php.
header ("Content-type: image/png");
$im = @ImageCreate ( 50, 100)
or die ("Cannot create a new GD image.");
$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);
thanks
I am trying to check if GD-library is working together with PHP but it failed. I have to run the below code to check it. I have already downloaded GD-1.8.4.
Please can anyone help me on how to configure graphics with php.
header ("Content-type: image/png");
$im = @ImageCreate ( 50, 100)
or die ("Cannot create a new GD image.");
$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);
thanks