Jump to content

Installed GD library, but won't work?


Recommended Posts

I spent way to long, but I finally got PHP v5.2.3 running on my Win32 computer. I went to the php.ini file and removed the ; on the extension=php_gd2.dll

I restarted apache, and tried to create a button, the error was:

Fatal error: Call to undefined function imagecreatefrompng()....

 

My extension_dir = "C:/php/php-5.2.3-Win32/ext" and the php_gd2.dll file is there. I must be missing something

 

From what I've read online, it would seem that the library isn't installed. When I do a phpinfo(), I don't show any gd library. Is it something that I have to load seperatly? Apart from activating it in the php.ini and having the dll????

 

Any help or possible ideas are really appreciated

 

Link to comment
https://forums.phpfreaks.com/topic/93036-installed-gd-library-but-wont-work/
Share on other sites

I would recommend you to add PHP to the PATH Environment Variable. Also ensure PHP is reading the php.ini you are modifying by simply running phpinfo() function and looking to see if the path shown on the Load Configuration File line is the same path as your php.ini, you can also add the PHPIniDir directive too within Apaches httpd.conf which will force PHP to read the php.ini in the path provided, eg:

PHPIniDir "C:/php/php-5.2.3-Win32"

 

However adding PHP to the PATH should help.

Archived

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

×
×
  • Create New...

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.