Hi -

I don't know if this is the best place to ask, but I can't find any information that'll either prove or DISprove this.

I'm looking to do some scripting utilizing the GD libraries and PHP. However, a friend of mine told me that GD won't work with PHP version 4.11 - that I'd have to downgrade my version of PHP to run GD properly.

This sounds like a load of crap. Is he right?

thx.

    Well the highest version of PHP that GD worked on was 4,0,6 for me... and the newer versions just printed out some bugs when i loaded the module.

      Oh my god,is that true???

        We use php 4.1.1 and gd works fine, don't believe the hype!

          My friend is wrong.

          We successfully compiled PHP 4.1.1 with GD support. A couple of things that I learned (if this helps anyone out):

          When setting your ./configure flags you might want to put the directory paths for libpng and the jpeg library. I didn't before and that accounted for some of the errors I was getting (it couldn't find them on it's own).

          Also - I had attempted to install GD a couple times while I was messing with this (thinking that it was a problem with GD and not PHP). I ended up with multiple copies of gd.h - I deleted all of them except the one in /usr/local/include. After that, it compiled fine.

            Hi,

            I tried to compile the latest php, i think it is version 4.2.0 dev. But, I couldn't get the truetype font to work.
            My configuration is --enable-gd-native-tt --with-freetype-dir.

            May I know what is the problem?

            Thanks.

              I hope its a typo on your post .. but the configure directive is --enable-gd-native-ttf, not native-tt

              laypeng wrote:

              Hi,

              I tried to compile the latest php, i think it is version 4.2.0 dev. But, I couldn't get the truetype font to work.
              My configuration is --enable-gd-native-tt --with-freetype-dir.

              May I know what is the problem?

              Thanks.

                6 days later

                This is how I configured my php-4.1.1

                ./configure --with-mysql --with-apache=../apache_1.3.23 --with-gd-dir=../gd-1.8.4 --enable-track-vars --with-jpeg-dir=../jpeg-6b --with-t1lib-dir=../t1lib-1.3.1 --enable-png --with-png

                Here is the error I've got:

                Fatal error: Call to undefined function: imagecreate() in /home/dade/public_html/project2/test/button.php on line 2

                Any Ideas?

                  Write a Reply...