Hello,

While viewing my PHP info .. I see this apart of my configure command.

'--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf'

.
.
.

But I don't see the GD section that normally comes towards the middle of the page... and GD doesn't seem to be working.

By the way. I don't understand anything about configuring my php.. I don't even know where to find the folder where I would type the configure command. So can someone please help.

Thanks.

    try running phpinfo() and see if gd is there, then simply try

    $im = imagecreate(50, 100);

    and see if php complains, you either have those functions available or not..

      This is the error...

      Fatal error: Call to undefined function: imagecreate() in /home/website/public_html/beta3/test.php on line 4

      And no, GD section isn't in the phpinfo() page.

        :-( is there anyone that knows how to configure GD with PHP?

        I'm not getting it.

          14 days later

          Look here for more Image Functions
          Here is some info from that page;

          To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.

          In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.

          Note: To enable exif support in Windows, php_mbstring.dll must be loaded prior to php_exif.dll in php.ini. 

          To disable GD support in PHP 3 add --without-gd to your configure line.

          Enhance the capabilities of GD to handle more image formats by specifying the --with-XXXX configure switch to your PHP configure line.

            Write a Reply...