I had been attempting to setup jpgraph last evening, I experienced several good examples but each time I finish track of whether blank page on chrome or "The look “image.php” can't be displayed since it consists of errors. on Opera. I experienced a few of the paperwork and examined to see if my GB Library works and today I have recognized that does not act as well.
I installed GD using apt-get install php5-gd. I've checked php.ini for that extension-dir, with a connect to personal files with gd.so uncommented.
inside phpinfo gd is enabled,
Here's an from the example bit of code I have tried personally to check gd, these result in a blank page:
<?php // content="text/plain; charset=utf-8" $im = @imagecreate (200, 100) or die ( "cannot create a new gd image."); $background_color = imagecolorallocate ($im, 240, 240, 240); $border_color = imagecolorallocate ($im, 50, 50, 50); $text_color = imagecolorallocate ($im, 233, 14, 91); imagerectangle($im,0,0,199,99,$border_color); imagestring ($im, 5, 10, 40, "a simple text string", $text_color ); header ("content-type: image/png"); imagepng ($im); ?>
When run apache's error log shows nothing, and I don't have any page soruce back. Shall We Be Held missing one step here?