PDA

View Full Version : installing GD for PHP on a win32 computer



mattsoft
February 18th, 2004, 11:49
I read on a few sites that GD comes preinstalled in the newer versions of php , but I have the newest 4.3.4, and I don't have GD. it's not in my phpinfo, and none of the functions work. so where do I download GD from and how do I install it?

btw, to save confusion, my hosting business is run off a linux box, and my windows server is only for testing and development.

jason120au
February 20th, 2004, 06:09
What u do is you go to your PHP directory, for example
C:\PHP\ and go to the extentions directory which usually is
C:\PHP\extentions\ and find the file named
php_gd2.dll once found open your PHP.ini file which should be in your System root which is most probably C:\WINDOWS\ depending on what was chosen at install.

Once PHP.ini is open fine the line extension=php_gd2.dll and make sure it is uncommented. Also make sure your extension directory is correct.

Once completed restart Apache and everything should be OK.

mattsoft
February 20th, 2004, 10:49
thanks, I got it working. I used the exe installer to install php before, and I had to get the php_gd2.dll file out of the zip version.