1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Hong Kong
    Rep Power

    I have installed the GD 1.8.2, and compiled it with Apache and PHP.
    I run phpinfo(), and it show the GD Support is enable.

    Well, I tried the following function, and it return an error to me.

    if (ImageTypes() & IMG_PNG) {
    echo "PNG Support is enabled";

    the error message is
    "Fatal error: Call to undefined function: imagetypes() in /home/www/test1.php on line 2"

    umm...anyone know how to get GD and the Image functions work?

  2. #2
  3. No Profile Picture
    Gödelian monster
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jul 1999
    Central Florida, USA
    Rep Power
    I don't know what your OS is, but if its Linux or Unix, we discussed installation of php with gd in http://www.devshed.com/Talk/Forums/F...ML/000710.html

Similar Threads

  1. Problem with image resizing
    By willms_jay in forum PHP Development
    Replies: 0
    Last Post: February 12th, 2004, 12:23 AM
  2. insert image into database
    By sweetpotatoe in forum PHP Development
    Replies: 11
    Last Post: February 8th, 2004, 07:11 AM
  3. Replies: 8
    Last Post: February 7th, 2004, 01:20 PM
  4. CSS onMouseover using both image and text
    By atlas2785 in forum CSS Help
    Replies: 5
    Last Post: February 4th, 2004, 11:20 AM
  5. php image manipulation HELP!
    By slee in forum PHP Development
    Replies: 1
    Last Post: January 30th, 2004, 09:06 PM

IMN logo majestic logo threadwatch logo seochat tools logo