how to install gdlibrary

Discussion in 'PHP' started by whirlpool6, Sep 3, 2007.

  1. #1
    i would like to make scaled images through imagecopyresampled but i dont know how to use the gdlibrary... i dont know how to install it in the first place... help
     
    whirlpool6, Sep 3, 2007 IP
  2. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The GD library needs to be compiled into your version of php. You can't simply "install" it.

    Can't say much more without knowing your setup: what operating system are you running, how did you originally install php, etc.
     
    sea otter, Sep 3, 2007 IP
  3. liam1412

    liam1412 Active Member

    Messages:
    387
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #3
    If you are running on windows then all you need to do is go into your php.ini file and uncomment (remove the # from) the line

    #extension=php_gd2.dll

    Then restart your apache server and bobs your aunty.

    Linux detailed instructions here

    http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.html

    Hope this helps
     
    liam1412, Sep 3, 2007 IP
  4. whirlpool6

    whirlpool6 Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks a lot.

    it is done.

    i never thought it is that simple.
     
    whirlpool6, Sep 4, 2007 IP