Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4667
  • Last Modified:

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
0
micro_learner
Asked:
micro_learner
  • 3
3 Solutions
 
darron_chapmanCommented:
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
 
steelseth12Commented:
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
 
nizsmoDeveloperCommented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now