Hello, I am having some trouble with graphics support. I did not compile and install php on our server but am now in charge of managing it, and I am not sure what I am doing. I wanted to try out the graphics capabilities as I have never used this. To test it I used the following code straight from the php online manual.
header("Content-type: image/png");
$im = @imagecreate(100, 50)
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);
imagedestroy($im);
The only output I got from it though was the following string:
‰PNG IHDRd2ûìýPLTEÿÿÿé[‘Ë£eIDAT(‘cfxÄÀÃÇ ÀçÀÁÀÀÒÄ [vKÇɧ’ ì ‡Â\6p¦)ð¸u.``iP o9ÀÙ¦Á©Tyܯ€ã¥€ŒŠ¬ÈX&Z¸u Y¿´@¢mÂIEND®B‚
i pulled up phpinfo() and it shows the following;
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.10
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled
but I also noticed it does not show --with-gd in the configure command.
can any one tell me what I might be missing and what I need to do? I have written php code for a while but I have never been involved in the server installation of it and am at a bit of a loss. Any help our guidance would be greatly appreciated. Thank you.
the version of php is 5.0.4