PDA

View Full Version : support for gd graphics in php


drobbins
17th January 2010, 12:32 PM
Hi Folks

I find myself in need of the gd graphics library from php
this page

http://us.php.net/manual/en/image.installation.php

seems to indicate I need to recompile php with a switch to enable it
is this so?
I've used it in the past, seems like it was just enabled by default
here's the output of phpinfo()

http://drobbins.net/test.php

Dave

markkuk
17th January 2010, 12:43 PM
No need to recompile, just install the php-gd package.

drobbins
17th January 2010, 12:48 PM

ok, did that
restarted apache
still get same output from phpinfo()
do I need to enable gd in php.ini?

Thanks
Dave

markkuk
17th January 2010, 12:51 PM
I can see the "gd" section in your phpinfo output that wasn't there before, so all seems to work now.

drobbins
17th January 2010, 12:53 PM
ok
thanks
that seems to be fixed
I was trying to call gdinfo() and it failed
might have used wrong synax

Thanks
Dave

[edit] it's var_dump(gd_info());

markkuk
17th January 2010, 12:55 PM
The function is gd_info()