Link to home
Start Free TrialLog in
Avatar of WaqasAnjum
WaqasAnjum

asked on

GD with PHP5

Hi experts,
Have you ever installed and used GD with PHP5. If yes please guide me how I can use GD with PHP on windows 2000/XP plateform using Apache as Server.

I have tried this:

 Set extension dir to c:\php in php.ini file
 Put php_gd2.dll in c:\php dir. I get this dll from my old installation of php4.3
 uncomment the line "extension=php_gd2.dll "
 Restart Apache
 Reload php file and I get this error
 "PHP Startup: Unable to load dynamic library 'c:\php\php_gd2.dll' -
 The specified module could not be found."

Thanks,
Waqas
Avatar of hernst42
hernst42
Flag of Germany image

The dlls of php4 and php5 are not compatible. Download the zip of php5 and grab the php_gd2.dll from there
Avatar of ThomasFranke
ThomasFranke

The GD that is bundled with PHP5 needs some dlls. When installing PHP5 and using
some of the included extensions (like GD) copy all of the *.dll-files from the /php/-dir
to c:\windows\system32\ to ensure they are found.
Avatar of WaqasAnjum

ASKER

This is the problem as you both says GD is bundled with PHP5 but the fact is that it is not bundled or I am not getting it. No variables are set for GD when I check php configuration using phpinfo().
I  could not find php_gd2.dll in any dir on hard disk.
Download this package:

http://www.php.net/get/php-5.0.2-Win32.zip/from/a/mirror

It definetly contains the required dlls.
ok i got the dll but i still have this error. It pops up (in alert box)three times whenever a php script is executed.
"PHP Startup: Unable to load dynamic library 'c:\php\php_gd2.dll' -
 The specified module could not be found."
I had copied this file to c:\php, c:\winnt, c:\winnt\system and c:\winnt\system32. Nothing is working in favour of me.

saw this problem a dozin times.... let me think what the solution was
Try http://www.sysinternals.com/ntw2k/source/filemon.shtml
which shows which files are search and if they are found.
ASKER CERTIFIED SOLUTION
Avatar of ThomasFranke
ThomasFranke

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial