anushka Posted February 29, 2008 Share Posted February 29, 2008 The php.ini iis like this : extension=php_gd2.dll This the error which i got when i executed Call to undefined function gd_info() .I have also removed the semicolons in php.ini file for extension=php_gd2.dll Can any one help me Thanks for helping Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted February 29, 2008 Share Posted February 29, 2008 Make sure you have restarted your webserver (Apache or IIS) when modifying the php.ini. Also ensure your changes have made any affect by running the phpinfo() function within a script. If GD has loaded you should find a GD subheading. If you don't have a GD subheading then the extension hasn't loaded. I would first check that PHP is reading the php.ini you are currently modifying by looking at the Loaded Configuration File line when running phpinfo. The path stated should be the same path as the php.ini you are editing. If it is set as C:\WINDOWS or (none) then there is your problem, php is not reading your php.ini. I would recommend adding PHP to the PATH Environment Variable make sure your php.ini is located in your PHP installation folder and restart your computer. Run phpinfo again and check the Loaded Configuration File line is set correctly. If the Loaded Configuration File is set correctly and GD is still not showing up. Then enable a setting called display_startup_errors within the php.ini. Restart your webserver, whilst your server restarts you should find errors displayed if PHP is having any issues whilst loading. Quote Link to comment 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.