homepage Welcome to WebmasterWorld Guest from 54.196.18.51
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Is my ISP lying to me?
Have I got the GD extension installed or not?
rycrostud




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

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

Cheers.

 

sugarkane




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

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




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

Thanks - I'll give that script a try.

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

rycrostud




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

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?

rycrostud




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

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.

sugarkane




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

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

rycrostud




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

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?

Zunixx




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

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

<?
phpinfo();
?>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved