Solved

Enable GD in PHP 5.2.5

Posted on 2007-11-20
5
4,657 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

733 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