Results 1 to 7 of 7

Thread: Image function

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Osaka
    Posts
    200

    Image function

    I want to generat my secure code image myself.
    In my code
    $image=imagecreatetruecolor($x, $y);

    imagecreatetruecolor is returning
    Fatal error: Call to undefined function: imagecreatetruecolor()
    Thank You.

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Image function

    Quote Originally Posted by slice
    I want to generat my secure code image myself.
    In my code
    $image=imagecreatetruecolor($x, $y);

    imagecreatetruecolor is returning
    Fatal error: Call to undefined function: imagecreatetruecolor()
    Thank You.
    Create a file with:

    PHP Code:
    <?php
      phpinfo
    ();
    ?>
    as its contents, view the page. And check to see if GD is enabled, if not then you'll need to get your host to enable / upgrade it in otder for that woo work Also, check you have the correct PHP version

    Cheers,

    Ryan Jones
    My Blog.

    Ryan Jones.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Osaka
    Posts
    200

    Re: Image function

    I am currently testing on my own pc.So i have to enable it myself.
    How to enable it ?
    Thank You.

  4. #4
    Member AWC_Joe's Avatar
    Join Date
    Jan 2006
    Location
    Located
    Posts
    49

    Re: Image function

    Quote Originally Posted by slice
    I am currently testing on my own pc.So i have to enable it myself.
    How to enable it ?
    Thank You.
    This shuold get you started:
    http://www.boutell.com/gd/


    _
    |
    Some programs and scripts ive made: http://wiki.anotherwebcom.com
    What was once an opinion, became a fact, to be later proven wrong...

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Osaka
    Posts
    200

    Re: Image function

    There are not clear instructions available for installing gd.

  6. #6
    Hyperactive Member PlaGuE's Avatar
    Join Date
    Jun 2005
    Location
    in ur mind.
    Posts
    445

    Re: Image function

    Nothing in life is easy.
    Without balance, there could only be chaos.
    Without chaos, there could be no balance.
    I live with karma. Eat with destiny. Dream of life without shackles....
    Yet. If life had no consequences, life could not exist, nor could it flourish.


    If at first you dont succeed.You're screwed.

    C++/Java NOOB.

    I aint a professional at PHP, but if i can help i will.

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Image function

    Quote Originally Posted by http://uk2.php.net/image
    Installation

    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.
    Not sure it could be any clearer.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width