Web Hosting Talk







View Full Version : GD Library installation


ACIDman
01-17-2004, 03:17 AM
Hi!
I have Windows 2000, Apache 2 and PHP 4.3.4 installed. Now I want to enable the GD library. I uncomment and change the line in php.ini (which is in my system32 folder) to:
GD2=php_gd2.dll
And restart my server. But when I use phpinfo() - there's no GD library! Like it's not enabled. I copied php_gd2.dll to /php. /php/dll, winnt, winnt/system32 folders :). But still - it doesn't work! PHP says 'undified' to all the GD's operators I try to use.

What do I do wrong?
Thanks!

phpdeveloper
01-17-2004, 06:55 PM
Edit the C:\Winnt\php.ini file

Find the line:
extension_dir = ./
and change the path to where you have extensions on your system (where you installed php\extensions), for example:

extension_dir = C:\php\extensions

ACIDman
01-18-2004, 12:43 AM
It doesn't anyway! Same thing. :(

IWS
01-18-2004, 10:49 PM
Put the .dll files in the extensions dir specified in your php.ini file. Make sure that you have uncommented the extensions from the gd2.dll

ACIDman
01-18-2004, 11:33 PM
Of course I did that:). By default, php_gd2.dll comes with PHP and it's already in the extensions folder. I specified it, uncommented "extension=php_gd2.dll" and renamed it to "GD2=php_gd2.dll" - nothing has changed.

ACIDman
01-18-2004, 11:57 PM
Finally :).
After checkind everything, correcting slashes to back slashes and moving php.ini from system32 to Windows folder it works:).
Thanks!