GD not installed

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
ayoksus
Forum Newbie
Posts: 14
Joined: Tue Feb 13, 2007 2:51 pm

GD not installed

Post by ayoksus »

Hi,

I want to learn about drawing with php which needs GD library support. Before that I test the server if there is GD library installed. So I use this code:

Code: Select all

if(!function_exists("gd_info"))
But the result is no GD installed.

I check the phpinfo, GD is installed and all enabled. I check php.ini, the phrase extension:php_gd.dll, it is already uncomment. So, I don't know what else I should do.

Could someone tell me how to solve this problem?

Thank you,
ayok
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

You are showing the tiniest snippet of code that you could be using incorrectly. What does

Code: Select all

print_r(gd_info());
produce?
Post Reply