Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.