How to enable the GD Library
Posted by: kigol (203.177.240.---)
Date: October 12, 2007 12:44PM

i just want to ask if someone knows how to enable the GD library. It seems when i test one of the code i have downloaded it gives an error.

<?php
if (function_exists('imagecreate')) {
echo "GD Library is enabled <br>\r\n<pre>";
var_dump(gd_info());
echo "</pre>";
} else {
echo 'Sorry, you need to enable GD library first';
}
?>

my browsers return the else statement.. please help me newbie here T_T

Options: ReplyQuote
Re: How to enable the GD Library
Posted by: yfastud (72.236.169.---)
Date: October 12, 2007 02:59PM

Through wamp tray icon, php settings, php extensions, php_gd2.dll, then restart wamp

Have fun,

[www.jlbn.net] (Basic Guide for WAMP & Add-ons)

Options: ReplyQuote
Re: How to enable the GD Library
Posted by: Gunder (---.hsd1.ut.comcast.net)
Date: October 16, 2007 02:14AM

I am having problems with this as well. I initially went in and uncommented the lines for the GD lib in the php.ini file and it didn't work. Then I tried what you said to do by enabling it using Wamp and restarted it. Still it's not working for me. Do you have any other ideas or troubleshooting?

Options: ReplyQuote
Re: How to enable the GD Library
Posted by: Gunder (---.hsd1.ut.comcast.net)
Date: October 16, 2007 02:44AM

I got it working, running phpinfo I noticed it was using the wrong php.ini file. I uninstalled wamp got rid of the rogue php.ini files, reinstalled and everything is working flawlessly. Thank you!

Options: ReplyQuote


Sorry, only registered users may post in this forum.