I´m using PHP with APACHE web server on Windows 98 (for testing of my projects, for Inernet pages I´m using LINUX server). I want to use the GD library on my W98, but i can´t compile it and configure with PHP.
How can do it?

    hi,

    on a windows operating system you don't need to compile anything you need the file

    "php_gd.dll"

    it is included in the *.zip distribution of php then you add in php.ini

    extension_dir= /path/to/dir

    under extension

    extension = php_gd.dll

    run a phpinfo(); now if it shows a gd section ...... you now can start using it

    regards Erik

      Hi,

      I also faced the same problem as Roman Safranek. Let me explain the whole scenario.

      I have PHP 4.2.1 (latest) running on Win 98 installed in c:\php\ folder and I have set the path for that folder. I have apache web server. Recently I have downloaded php_gd.dll. As the instruction said, I have copied php_gd.dll to c:\php\ folder and also updated my php.ini file in c:\windows\ folder, where I uncommented the directive "extension=php_gd.dll". "extension_dir" directive says "extension_dir=./". I think I have done everything as per the instruction. Now the problem I am facing is, when I run the command line php (php filename.php) from the c:\php\ folder, it says, it cannot find one or more devices. When I run the command line from somewhere else (php filename.php) it says, php_gd.dll not found.

      Do you have any idea of why it's happening. Any suggestion / solution is highly appreciated.

      Thanks in advace.

      P.V.Raja

        hi,

        offcource it can't find php_gd.dll you must set

        extension_dir=c:/php/extensions

        for example

        set extension_dir to the correct path in php.ini if you have difficulties to determine the path use the windows explorer and browse to the path copy it from the location bar and paste it into php.ini

        you may not leave extension_dir empty the ./ is a default setting and will not work
        regards
        Erik

          24 days later

          Remember that you must load php as a module to get most extensions to work at all.

          Copy the file \php\php4ts.dll to c:\windows\system\

          Specic for Apache 2.0.x and PHP 4.20:
          copy "\php\experimental\apache2filter.dll to \windows\system\" to get modules to work!

          #ScriptAlias /php/ "c:/webserver/php/"
          #AddType application/x-httpd-php .php
          #Action application/x-httpd-php "/php/php.exe
          LoadModule php4_module c:/webserver/php/sapi/php4apache.dll (Insert)
          AddType application/x-httpd-php .php (Insert)

          4) Start Apache!
          5) Try out phpInfo(); to see PHP works.

          tjekc my site at www.mdz.dk for more.

            Write a Reply...