[SOLVED] problem with php_gd2.dll

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
dujed
Forum Newbie
Posts: 9
Joined: Thu Mar 30, 2006 6:49 am

[SOLVED] problem with php_gd2.dll

Post by dujed »

I use PHP Version 5.1.2 and Apache 2.0.55 and I try to install php_gd2.dll library.
I uncomment ;extension=php_gd2.dll , now (extension=php_gd2.dll)
Put extension=php_gd2.dll file in extension directory (extension_dir = "./")
restart apache,and GD library still not work.

Thanks
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

Are you on windows? On Unix systems php needs to be compiled --with-gd. Might want to try searching google.
dujed
Forum Newbie
Posts: 9
Joined: Thu Mar 30, 2006 6:49 am

Post by dujed »

I am on widows and I see a <?php phpinfo() ?> and I dont have GD section !
I have followig line in phpinfo():

Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Are you sure that ./ is the path to your extensions? Look in your phpinfo() to find the extensions path then place php_gd2.dll in that path. (often times it is C:\Windows)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
ambivalent
Forum Contributor
Posts: 173
Joined: Thu Apr 14, 2005 8:58 pm
Location: Toronto, ON

Post by ambivalent »

You probably need to specify the path to the extensions directory in your php.ini

Code: Select all

; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\path\to\ext\dir"
dujed
Forum Newbie
Posts: 9
Joined: Thu Mar 30, 2006 6:49 am

Post by dujed »

Yes I set the path of extension directory and now everything work!!!
Thanks everybody
Post Reply