Page 1 of 1
GD Libary Not Working with PHP 4.3.6
Posted: Wed May 12, 2004 3:20 am
by yosuke_
Hi!
Im so happy that you are back, I realy miss this forum!!

I have a probem with installing GD Libary!
First I installed PHP 4.3.4, after I installed it, GD libary should be installed to right? But it didn't! I checked phpinfo(); But nothing. There arent any info about GD Libary! Then I tested simple code who should create image, but nothing. Then I downloaded PHP 4.3.6 and installed and opened phpinfo(); Again nothing. What is wrong? Im I missing something or what? Thank you.
Posted: Wed May 12, 2004 3:21 am
by markl999
http://php.net/image gives instructions on how to get GD support in PHP.
Posted: Wed May 12, 2004 3:23 am
by JayBird
open your php.ini and find the section called Dynamic Extensions (about half-way down)
Then find this line - ;extension=php_gd2.dll
Remove the semi-colon.
Restart your web server
Mark
Posted: Wed May 12, 2004 3:51 am
by yosuke_
Help!!!
I downloaded this file:
http://www.boutell.com/gd/http/gd-2.0.23.zip
When I unzip it there is lots of C source files and header files! What should I do next? How can I get GD Libary support and why dosnt PHP have GD libary installed with him? Thank you
Posted: Wed May 12, 2004 3:54 am
by JayBird
did you try what i said?
Posted: Wed May 12, 2004 4:09 am
by yosuke_
Well, I uncomented that line and when I restarted server and opened some php page MessageBox appiered and shows me this:
Unknown(): Unable to load dynamic libary './php.gd2.dll' - The specified module could not be found.
What should I do with that file I downloaded?
Posted: Wed May 12, 2004 4:32 am
by yosuke_
Well, I found a litle tutorial how to install PHP and GD libary from ZIP package. Here is the manual from
http://www.php.net
Installing GD extension on Windows:
First you need to download PHP 4.3.x zip package not the PHP 4.3.x installer! PHP 4.3.x zip package has extensions included already.
Follow the instructions on installing PHP at install.text.
If PHP is already working, you may now activate the GD by doing the following:
1. Uncomment the - extension_dir="". Then you should point it to where the extensions folder is located. Extensions folder is extracted from PHP zip file you downloaded.
Example: extension_dir = C:/PHP/extensions
2. Uncomment the following by removing the semicolon -
Example: extension=php_gd2.dll
3. Test if GD extension is already loaded by executing the following lines:
<?php
var_dump(gd_info());
?>
Hope this helps!
I set up PHP support to my webserver, but I can't set up that GD libary!

I did everything (I restarted server too)
extension_dir = "C:/PHP/extensions" (I try'd extension_dir = "C:\PHP\extensions" too)
extension=php_gd2.dll (Uncomented it)
But nothing!!! php_gd2.dll exists in extensions folder!! Then I Executed this code:
But then I get this error:
Fatal error: Call to undefined function: gd_info() in c:\inetpub\wwwroot\Index.php on line 2
Please help me!! What did I do wrong?? Thank you!!
Posted: Wed May 12, 2004 7:41 am
by yosuke_
Am I being ignored?
Posted: Wed May 12, 2004 2:02 pm
by yosuke_
Doesnt anyone have the same problem??? Hello!!!