Enable GD in PHP 5.2.5

Hello I am new to PHP and need to enable GD for some images...I am using PHP 5.25 on windows ..do I need to compile (how?) or is it just a configuration file change to enable it?

I am confused ..Thank You
micro_learnerAsked:
Who is Participating?
 
darron_chapmanConnect With a Mentor Commented:
The easiest way would be to rerun the PHP installer and choose GD from the list of available extensions.  This will add the necessary DLL and enable the extension in php.ini.
0
 
darron_chapmanCommented:
You could also edit the php.ini file directly and find this entry ;extension=php_gd2.dll and remove the semicolon.  I'm not sure if the dll will be there unless you actually run the installer and choose it.  After you make the change, restart IIS or Apache (whatever webserver you're using)
0
 
steelseth12Connect With a Mentor Commented:
GD come recompiled and enabled by default.

Create a new file and place the following code

<? phpinfo();?>

run the file and look for GD
0
 
nizsmoConnect With a Mentor DeveloperCommented:
If you are relatively new and don't want too much trouble or complicated steps, the way to go is to use a very easy installer:
http://www.wampserver.com/en/

this will install php, mysql, phpmyadmin, apache, etc...all autoconfigured by default so it runs straight after the install, and also has GD library enabled BY Default.

Hope this helps.
0
 
darron_chapmanCommented:
I agree with nizsmo.  WAMP server is very easy to setup and use and enabling and disabling extensions is just a matter of a few clicks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.