Welcome to WebmasterWorld Guest from 126.96.36.199 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Is my ISP lying to me? Have I got the GD extension installed or not? rycrostud
I'm trying a PHP script on a web site I'm currently developing for a client. It's due for release in a week.
The scripts generate graphs of access stats using PHP4 and the GD extension but unfortunately no graphs appear.
The script creators say it must be because the GD extension is not installed and my ISP claim it is!!
However, if you go to [
...] there is no mention of the extension which makes me think it isn't installed at all. asktodrive.co.uk
Does anyone have any ideas about how I might try and test this myself?
I've installed another script that relies on GD and that doesn't work either!!
It certainly looks as if the GD library isn't installed - I'm not very experienced with this, but I'm pretty sure that the 'Configure Command' section of that info page should include a --with-gd section if GD is installed.
I can't test this (I don't have GD installed either) but the following is about as simple a use of GD I can find - if it doesn't work it's almost certain it's not installed:
header("content-type: image/gif"); $image=ImageCreateFromGIF("images/image.gif"); ImageGif($image); ImageDestroy($image); ?> rycrostud
Thanks - I'll give that script a try.
What should I see in my browser if the script is working?
Ah thanks. One small problem though. My ISP tells me that the GIF format isn't supported due to some sort of copyright issues on the GIF format. I am assured that the PNG format is supported.
Do you know the PNG version of that script?
OK, here's where I'm at so far. I keep answering my own questions!!
For really good help on getting started with image creation using GD go to [
They talk you through writing basic scripts to make use of the GIF, JPEG and PNG formats.
Guess what - none of them work on my server. I look forward to hearing from my ISP.
rycrostud, did you get anywhere with this?
I'm wondering if it's at all possible to install GD as an external module rather than compiling it in to PHP itself
They say they are looking into it. An earlier response I got was:
"It looks as if GD was not specifically compiled with PHP4 - but is a standard option on version 4 and GD is installed on the server. You may perhaps need to interface with GD in a specific way."
Which I'm afraid means absolutely nothing to me. How else can you "interface" with the GD extension? There must be some GD experts out there - can anyone help?
To see if GD is installed or not, write a simple info.php file with the code below. This should provide you with all possible info on the installed version of php, and there should be a section for GD also.: