PDA

View Full Version : PHP GD Module



jojus
May 27th, 2008, 03:43 AM
Anyone know why phpinfo does not show GD info...
i tried this command in putty - rpm -qa |grep gd
and got the result

gd-2.0.28-5.4E.el4_6.1
gd-progs-2.0.28-5.4E.el4_6.1
gdbm-devel-1.8.0-24
gdb-6.3.0.0-1.153.el4_6.2
gdbm-1.8.0-24
sysklogd-1.4.1-26_EL
gd-devel-2.0.28-5.4E.el4_6.1

I don't know anything, so i will need to be walked through step by step. I have no experience with ssh, line commands, or putty so spell it out for me thanks.

if GD is installed, why its not showing in phpinfo????
If GD is installed already, how can i know??? im using CAPTCHA or for dynamic image generation with php scripts for image verification, so is must...


Thanks :)

ahmednuaman
May 27th, 2008, 01:13 PM
It should normally say the following:

GD Support => enabled
GD Version => bundled (2.0.34 compatible)

Try this in SSH:
php -info | grep GD

djheru
May 27th, 2008, 03:25 PM
If the server admin installs GD using YUM, GD might not show up in phpinfo IIRC

jojus
May 28th, 2008, 02:48 AM
Hi Ahmed,

Thanks for your reply...

i tried php -info | grep GD

and got the result
GD Support => enabled
GD Version => bundled (2.0.34 compatible)

So this means that GD is installed & enabled....
My question here is why its not showing in phpinfo and php scripts related to GD not working... for eg: i tried to do <? print_r(gd_info); ?> but gives an error Fatal Error: Call to undefined function gd_info()....

Awaiting your reply....
Thanks


It should normally say the following:

GD Support => enabled
GD Version => bundled (2.0.34 compatible)

Try this in SSH:
php -info | grep GD

jojus
May 28th, 2008, 02:53 AM
Thanks for your reply....

when i tried YUM commands in SSH, it says
-jailshell: yum: command not found

and functions related to GD are not working in php script.

Thanks


If the server admin installs GD using YUM, GD might not show up in phpinfo IIRC

djheru
May 28th, 2008, 03:07 AM
Do you have the php shared object installed with the library? You have to configure php --with gd. If it is, it should show up on your phpinfo page under the configure command. The only time I've seen it not show up on phpinfo()is when it was installed using yum. I wonder if it is a similar issue if installed using RPM?

ahmednuaman
May 28th, 2008, 05:14 AM
Have you tried running some tests to see if GD is working? http://uk.php.net/manual/en/function.imagecreatefromjpeg.php

jojus
May 29th, 2008, 04:10 AM
Thanks a lot for spending time for my problem...
GD started working now...


Have you tried running some tests to see if GD is working? http://uk.php.net/manual/en/function.imagecreatefromjpeg.php

jojus
May 29th, 2008, 04:11 AM
Thanks a lot for spending time for my problem...
GD started working now...


Do you have the php shared object installed with the library? You have to configure php --with gd. If it is, it should show up on your phpinfo page under the configure command. The only time I've seen it not show up on phpinfo()is when it was installed using yum. I wonder if it is a similar issue if installed using RPM?