Forum Moderators: coopster

Message Too Old, No Replies

How to determine whether GD is installed?

(and enabled)

         

apprentice

7:37 pm on Nov 4, 2006 (gmt 0)

10+ Year Member



I am trying to install a captcha form that required those graphic libraries. I got the error message "call to undefined function" which according to the authors of the form suggests that GD is not probably installed or enabled.

I created the usual <?phpinfo()?> report and the only part GD is mentioned is in the Configure Command section:

./configure'...'--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv'

Can you tell whether GD is installed from that? If I remember correctly, GD should have its own section within the PHP info report - but its not there.

Since my host isn't very responsive to my requests, I was thinking that I should try installing GD myself. Server is running Apache/2.0.52 (CentOS). Anyone aware of any tutorials that might help preventing me from screwing up things?

Regards.

eelixduppy

11:04 pm on Nov 4, 2006 (gmt 0)



In a new script, type the following to get the information about your gd installation. If it doesn't work, then you know that it's not installed correctly:

echo '<pre>';
print_r([url=http://us3.php.net/manual/tw/function.gd-info.php]gd_info[/url]());
echo '</pre>';

If you need to install it you first need to download the gd library. Then refer to the faq [boutell.com] for some details on installation. Also, php.net may have some stuff too.

Good luck! :)

Psychopsia

11:06 pm on Nov 4, 2006 (gmt 0)

10+ Year Member



If GD is installed, phpinfo() should show a block with information about GD version and supported image types.

apprentice

6:59 pm on Nov 6, 2006 (gmt 0)

10+ Year Member



Thank you both,

GD is indeed not installed. I will try asking my Host once again, but I think I will probably be doing it in the end.

Regards.

apprentice

9:13 am on Nov 13, 2006 (gmt 0)

10+ Year Member



GD is indeed not installed. I will try asking my Host once again, but I think I will probably be doing it in the end.

I have just been asked US$100 from my Host for having the GD libraries installed for me. Now that's a bargain!

Lesson learned: Picking the right Host does help sometimes;)

Sincere apologies for resurrecting this thread, but I am sure you ll agree, having a laugh from time to time isn't bad!