Solved

Enable GD in PHP 5.2.5

Posted on 2007-11-20
5
4,652 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
  • 3
5 Comments
 
LVL 19

Accepted Solution

by:
darron_chapman earned 200 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 150 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 150 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Permalink issue in Wordpress archive 1 33
php date - compare 4 40
Download a website to hdd 2 50
echo time from sql to input type="time" 9 19
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now