Jump to content


GD library problem with PHP 4.3

  • Please log in to reply
No replies to this topic

#1 cfemocha

  • Members
  • PipPip
  • Member
  • 19 posts

Posted 16 September 2006 - 07:32 PM

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!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users