Help with GD 2 Library extension for PHP

Discussion in 'PHP' started by jpinheiro, Apr 22, 2009.

  1. #1
    Hello,

    I was wondering if anyone can tell me how to install GD 2 Library extension for PHP on my site as I think my site doesnt have it because the upload script will not work when it worked when I was on my other hosting

    htpp://PhotoHoster.us/

    So if anyone could explain to me how to install:

    GD 2 Library extension for PHP

    That would be greatly appreciated.

    Thanks,
    John
     
    jpinheiro, Apr 22, 2009 IP
  2. sliver

    sliver Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To check if you really have (or not have) gd support:
    create a whatyouwant.php file and paste into it:
    <?
    phpinfo();
    ?>
    Code (markup):
    upload in your site and call it using your browser.
    If you don't have nothing like this then you need to install or enable it.
    To install, on linux debian based OS type:
    sudo apt-get install php5-gd
    Code (markup):
    than i think you need to enable in php.ini and restart apache
     
    sliver, Apr 22, 2009 IP