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

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    Hi

    I'm new to PHP and want to to something with dynamic graphics.
    I have a host who supports PHP.
    Problem: if I try to use ImageCreate() or ImageGif() I get call to undefined function error as return.
    Could anyone help me out why I get this error ?
    Is it possible that my host hasn't the GD library installed ?(although they say they have.
    Thanx for help
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,648
    Rep Power
    4493
    Either it's not set up correctly, or it's not installed. PHP has to be compiled specifically with the options for graphic manipulation. If they just installed the basic PHP, it's not included.

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

    Join Date
    Jul 1999
    Location
    Central Florida, USA
    Posts
    2,307
    Rep Power
    62
    It also depends on the version of gd. gd-1.6 and higher no longer support creation of GIF files, only jpeg and png. See www.boutell.com/gd for the explanation. Thus you would need to use ImageJpeg() or ImagePng().

    The easy way to find out whether gd is installed on your server, and what version, is to create a small PHP file with the code:

    <?
    phpinfo();
    ?>

    Then browse to that file on the web and it will output a page with all the server configuration information.
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    2
    Rep Power
    0
    Thanks guys

    my host has enabled gd support and its working

Similar Threads

  1. windows XP chkdsk and file system problems
    By wey97 in forum Windows Help
    Replies: 26
    Last Post: August 3rd, 2005, 12:37 AM
  2. Intel Graphic driver problems with Mandrake 9.1
    By caayotee in forum Linux Help
    Replies: 0
    Last Post: January 27th, 2004, 05:40 AM
  3. Project Description for Graphic Designer for web graphics
    By jhertzba in forum Project Help Wanted
    Replies: 4
    Last Post: December 8th, 2003, 10:04 PM
  4. Blotchy graphics
    By Collin Boyd in forum Beginner Programming
    Replies: 4
    Last Post: October 13th, 2003, 02:32 PM
  5. Replies: 2
    Last Post: September 30th, 2003, 05:21 PM

IMN logo majestic logo threadwatch logo seochat tools logo