Local Hero Posted February 26, 2008 Share Posted February 26, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/93036-installed-gd-library-but-wont-work/ Share on other sites More sharing options...
DarkerAngel Posted February 26, 2008 Share Posted February 26, 2008 in my php.ini in my local test server I have php installed to "C:\inetpub\php" and the extention's are in "C:\inetpub\php\ext" so i just wrote: extension_dir = "./ext" Quote Link to comment https://forums.phpfreaks.com/topic/93036-installed-gd-library-but-wont-work/#findComment-476761 Share on other sites More sharing options...
wildteen88 Posted February 26, 2008 Share Posted February 26, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/93036-installed-gd-library-but-wont-work/#findComment-477244 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.