Jump to content


This topic is now archived and is closed to further replies.


GD library problem with PHP 4.3

Recommended Posts

Im trying to write a security image generator script for a registration form and I first wanted to test if GD library works.
I learnt that GD library comes with php 4.3, but when I tried phpinfo() GD setting is nowhere to be found.
Below are what I've tried so far:

[*]Execute “php –m” and “GD” module is found
[*]Uncomment the line extension=php_gd2.dll in php.ini
[*]Ensure that php_gd2.dll is in c:\php\extension directory.

I tried the script below
$image = ImageCreate(200,150);

and got this error msg:   Fatal error:  Call to undefined function:  imagecreate()

I really don't know what else to try, please help!

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.