Ik werk op een server waar volgens mij GD 2.0 of hoger op staat, zoals te zien is aan volgende output, maar waarom krijg ik dan toch onderstaande melding?
code:
output:
PNG Support is enabled
WBMP Support is enabled
JPEG Support is enabled
Functie bestaat echt wel!
Fatal error: imagecolorresolvealpha(): requires GD 2.0 or later in /opt/guide/www.funbreak.nl/HTML/chartslib/jpgraph.php on line 2746
code:
PHP:
1
| <?if (ImageTypes() & IMG_PNG) { echo "PNG Support is enabled<br>";}if (ImageTypes() & IMG_WBMP) { echo "WBMP Support is enabled<br>";}if (ImageTypes() & IMG_GIF) { echo "GIF Support is enabled<br>";}if (ImageTypes() & IMG_JPG) { echo "JPEG Support is enabled<br>";}if(function_exists("imagecolorresolvealpha")){ echo "Functie bestaat echt wel!";}include ("../jpgraph.php");?> |
output:
PNG Support is enabled
WBMP Support is enabled
JPEG Support is enabled
Functie bestaat echt wel!
Fatal error: imagecolorresolvealpha(): requires GD 2.0 or later in /opt/guide/www.funbreak.nl/HTML/chartslib/jpgraph.php on line 2746