?
Solved

Enable GD in PHP 5.2.5

Posted on 2007-11-20
5
Medium Priority
?
4,661 Views
Last Modified: 2013-12-13
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
Comment
Question by:micro_learner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 19

Accepted Solution

by:
darron_chapman earned 800 total points
ID: 20324863
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
 
LVL 19

Expert Comment

by:darron_chapman
ID: 20324873
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
 
LVL 20

Assisted Solution

by:steelseth12
steelseth12 earned 600 total points
ID: 20324889
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
 
LVL 21

Assisted Solution

by:nizsmo
nizsmo earned 600 total points
ID: 20324914
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
 
LVL 19

Expert Comment

by:darron_chapman
ID: 20324938
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

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question