Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Is my ISP lying to me?

Have I got the GD extension installed or not?



4:06 pm on Apr 23, 2001 (gmt 0)

10+ Year Member

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 [asktodrive.co.uk...] there is no mention of the extension which makes me think it isn't installed at all.

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!!



7:37 pm on Apr 23, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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");


6:58 am on Apr 24, 2001 (gmt 0)

10+ Year Member

Thanks - I'll give that script a try.

What should I see in my browser if the script is working?


7:02 am on Apr 24, 2001 (gmt 0)

10+ Year Member

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?


7:31 am on Apr 24, 2001 (gmt 0)

10+ Year Member

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 [devshed.com...]

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.


9:30 pm on Apr 25, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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


7:01 am on Apr 26, 2001 (gmt 0)

10+ Year Member

Hi sugarkane,

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?


11:33 am on Jul 26, 2002 (gmt 0)

10+ Year Member

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.:



Featured Threads

Hot Threads This Week

Hot Threads This Month