I am fairly new to php and am trying to use the gd2 functions to resize images. I am running PHP Version 5.2.8 on mac osx.

When i run the script I get the following error message:

Fatal error: Call to undefined function imagesx()

I have uncommented the following line in my php.ini file:


I have restarted mysql but the module doesn't show when I call phpinfo. I think the problem might be the following line in my php.ini:

extension_dir = "./"

Could this be the problem? If so where should I point extension_dir to?