GD Libary Not Working with PHP 4.3.6

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

GD Libary Not Working with PHP 4.3.6

Post by yosuke_ »

Hi!
Im so happy that you are back, I realy miss this forum!! :D
I have a probem with installing GD Libary! :cry:
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.
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

http://php.net/image gives instructions on how to get GD support in PHP.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

did you try what i said?
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post 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?
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post 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! :cry: 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:

Code: Select all

<?php
gd_info();
?>
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!!
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post by yosuke_ »

Am I being ignored?
yosuke_
Forum Commoner
Posts: 64
Joined: Tue Apr 13, 2004 12:29 pm

Post by yosuke_ »

Doesnt anyone have the same problem??? Hello!!!
Post Reply