i am using php3.0.6 for Window 98
and i followed the step which recommended by all of u... i downloaded php4ts.dll, php4isapi.dll, and phpts.exe and i put it in php folder..
but finally it give me error..
call to unsupported function
any one there giveme some advices??
thank you

cK

    Okay, I'm about to try it out, but people keep talking about:

    php.exe (for cgi interface)
    php4isapi.dll (for isapi interface)

    Can someone please tell me how I use the cgi interface on Win NT 4 with IIS 4, because I don't quite get it...

    I'm a really that stupid? ;-)

      Hi,

      You say you use php3.0.6 ? This is what I did:

      1. download.swwwing.com
      2. Get the phpts.exe, php4ts.dll, php4isapi.dll from core directory
      3. Went to the modules directory and downloaded all the DLL files, but I guess I only needed php_gd.dll, php_ldap.dll, php_imap.dll, php_zlib.dll and zlib.dll,
      4. Stopped IIS services and removed all old PHP files
      5. Put all the files in my c:\php4 directory (just to be sure)
      6. Put all DLL files in my c:\winnt\system32 directory (for you that would be c:\system32 I guess)
      7. Rebooted and (if needed) restart IIS

      It worked perfectly. However, the example from the php manual (createimagefromgif) didn't work, since it will only support JPG, PNG and TIF (I think). So I changed the example to make it look for my JPG and searched around for JPEG routines to substitue the GIF routines from the manual.

      After that, I followed Brett's wonderful advice to use the CGI version, but it worked even before. They say the CGI version is more reliable than the PHP4ISAPI.DLL I was using before.

      BTW, I got an error when I refered to my zlib.dll in the .ini file when I removed reference to it (and only opted php_gd.dll) it worked.

      I hope this works for you too. Basically I'd say switch from php3 to php4.

        I tried everything said here but i still have a problem. GD still wont load 'cause there are lib files missing. I now have zlib, imap and ldap but don't you need libpng and jpeg? If so, where can i download dll's.

          Put the zlib.dll and the php_gd.dll in the
          in your winnt\system32 directory. You don't need other library. They libpng,... are linked in the php_gd.dll.

          Add to your php.ini the following line:
          extension=php_gd.dll
          and all would be fine.

          Good luck

          Sergio

            I have copied the dlls and it is working correctly yeeeha.
            Only problem is that every time I call an "Image" function I get a warning:
            "Unknown list entry type in request shutdown"

            Anybody know why this is happening?

              i have copied all the dll file into the php directory... but still cannot works..why??

              cK

                11 days later

                Hi there,

                so I got this script from Sergio working:

                <?php
                Header("Content-type: image/jpeg");
                $im= ImageCreate(220,210);
                $vert = ImageColorAllocate($im, 0, 255, 00);
                ImageJpeg($im);
                ImageDestroy($im);
                ?>

                I simply installed the "php-4.0.1pl2-Win32.zip" version from this site on my PWS.
                I then changed the php.ini entries to
                extension_dir = c:/php
                which is my php-directory and activated
                extension=php_gd.dll

                After that, I replaced all files in the php-directory with those from download.swwwing.com/php4/modules/
                and additionaly took the files
                php4isapi.dll
                php4ts.dll
                phpts.exe
                from the core-directory, renamed phpts.exe to php.exe and thats it.

                The problem that remains, is that imagecreategif still doesn't seem to work. I also wonder if I must put an "@" before the function call since then the parser doesn't return the "No GIF-support" Error.

                Anyone there to help me?!?

                  Hi Daniel,
                  unfortunately gd library doesn't have the support to GIF images since the 1.5 version (or 1.6...). For the LZW compression algorithm inside the gif format they should have to pay royalties. This is the reason for the new free png format.
                  If you find an old version you can try to compile and link to the php... but I think it's a hard work.
                  A more fast solution to this problem, but less efficient is to use the fly program. It has compiled with an old version of GIF file and it supports GIF format.

                  http://martin.gleeson.com/fly/

                     With php I dinamically create a text file with the instructions to modify the image, then I call fly 

                  exec("fly -i ".$InputFileName." -o ".$OutputFileName." -q");
                  If you have problem you can try with the system instruction.

                  I hope it's usefull for you

                  Bye

                  Sergio

                    a month later

                    I have exactly the same problem. I've installed all the latest .dll files, etc. but when I try to use the function imagepng() to write to a file, I get that same error message: Unknown list entry type in request shutdown.

                    Strangely enough, directly outputting an image, without writing to a file, works no problem, i.e.

                    imagepng ($img); // works
                    imagepng ($img, "img.png"); // doesn't work

                    Is this because the GD library doesn't support writing PNG files? Or am I just doing something stupid?

                      2 years later

                      Scott,
                      I'm having trouble installing gd on Red Hat 7.1 I made all the separate libs, I've even made freetype and zlib, but it's throwing errors on config when it gets to Xpm.

                      i'm running this:
                      ./configure --with-gd=../gd-2.0.1 --with-jpeg-dir=../jpeg-6b --with-png-dir=../libpng-1.2.1 --with-freetype-dir=../freetype-2.0.8 --with-xpm-dir=../xpm-3.4k --with-zlib-dir=../zlib-1.1.3

                      and it's giving me this:

                      checking for the location of libjpeg... yes
                      checking for jpeg_read_header in -ljpeg... yes
                      checking for the location of libpng... yes
                      checking for png_info_init in -lpng... yes
                      checking for the location of libXpm... yes
                      checking for XpmFreeXpmImage in -lXpm... no
                      configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information.

                      any thoughts would be most appreciated!

                      thank you in advance.

                        Write a Reply...