PDA

View Full Version : ImageCreate() isn't a function?!



agiantdwarf
June 1st, 2002, 14:09
I know that PHP is bundled with the GD library. So when I'm trying to actually use it, and make a little script, I get an error.

Fatal error: Call to undefined function: imagecreate()"

What the hell? Ok...I go to PHP.ini and see php_gd.dll isn't on. I try to activate it...

"Failure to load /php_gd.dll"

AHHH! Help, anyone?

AlieXai
June 1st, 2002, 23:10
Just some basic checks here...

1.) Make sure extension_dir is set properly in your php.ini file.

ex: extension_dir = "d:/www/php/extensions"

2.) Make sure php_gd.dll actually exists in your extension dir. I know on my test box, there is a "php_gd2.dll", not php_gd.dll ...