PHP and GD question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hakeem777
    New Member
    • Apr 2010
    • 13

    #1

    PHP and GD question

    I am running CentOS Linux ver 4.4 and found that I have "gd-devel-2.0.28-4.4E.1" package installed. This is a GD library, I supposed. However when I generate the result from phpinfo(), I cannot find the GD section. In addition, when I tried to call gd_info() in the code, it gives error message " undefined function ..." I thought, since "gd-devel-2.0.28-4.4E.1" is installed, I should be able to use GD function. But obviously I am wrong. How can I let php to use GD in my scenario? Thanks.

    Regards,
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    You'll have to install the PHP5 GD extension. On CentOS, I believe this is done via yum install php-gd

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Yep, even though your OS has the a GD package installed, you still need PHP's GD extension to make it available to PHP.

      Comment

      • hakeem777
        New Member
        • Apr 2010
        • 13

        #4
        Thanks for the advice. I have tried to use yum. However my server is blocked from outside. Therefore it doesn't work. Any otherway. Thanks.

        Comment

        Working...