I have tried several times to install GD library on Win98+PHP4.0.6+Apache(module mode),
but can't get it, no GD info showed after calling <? phpinfo();?>.
the ; before extension=php_zlib.dll and extension=php_gd.dll have been removed, PHP locates in c:\php
the php_gd.dll locates in c:\windows\system\extensions\
All works have been done as mentioned above, but still no GD module.

Who would please give me the detailed introduction on how to install GD?

which directory should the gd-1.8.4.zip and zip files for libpng, zlib and jpeg-6b be extracted to?

Thank you!

    Mike,

    To get the supplied gd lib to work.

    In php.ini:

    1. Uncomment the extension (as you have done)
      e.g extension=php_gd.dll
    2. Define the path to where your extensions are in the PATHS AND DIRECTORIES section
      e.g. extension_dir = "C:\windows\systems\extensions\"

    After that, GD should work.

    Cheers
    Justin

      it might be that the gd library is not loaded due to an error in the php.ini. that was the case on my pc. I spent at least 10 hours trying to install gd library until I noticed a little mistake. The line:
      error_reporting=E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE|E_USER_ERROR|
      was incorrect. After removing the | sign at the end of the line I restarted the apache server and the gd library was loaded.

        also you have to specify the correct extension_dir (see php.ini), if you haven't done so already

          10 days later

          Try getting the new PHP 4.1 build and get the php_gd.dll from there. That should help with all functionality, but as far as install goes, all I did was exactly what you did, but I put all my php_*.dll files in C:\WINDOWS\SYSTEM (or on win2000, c:\WINNT\SYSTEM32), as well as in c:\php\extensions

          Everything works fine. I have JPEG, PNG and TTF support. The only thing is now, I can't run GD 2.0+ functions (TrueColor functions etc...).

          I downloaded the compiled version of GD 2.0+ from Vladimir, and installed his dll, but it lacked TTF support...

            Write a Reply...