Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Gd

  1. #1
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Gd

    Can somebody please help me get my GD library installed? I've been to php.net and tried from them but i'm just really confused. I'm currently running WindowsXP, and have downloaded a GD library from this site:

    http://www.boutell.com/gd/

    Any help would be great.
    Thanks.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You evidently didn't read the chain of documentation correctly
    Quote Originally Posted by http://www.boutell.com/gd/faq.html
    php 4.3.x is available, and it includes a version of gd as "standard equipment." php_gd2.dll is included in a standard PHP installation for Windows, it's just not enabled by default. To turn it on, the user may simply uncomment the line "extension=php_gd2.dll" in php.ini and restart the PHP extension. Change:
    Code:
    #extension=php_gd2.dll
    To:
    Code:
    extension=php_gd2.dll
    You may also have to correct the extension directory setting from:
    Code:
    extension_dir = "./"
    Or:
    Code:
    extension_dir = "./extensions"
    To (FOR WINDOWS):
    Code:
    extension_dir = "c:/php/extensions"
    NOTE: SUBSTITUTE THE ACTUAL PHP INSTALLATION DIRECTORY ON *YOUR* COMPUTER.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You know, sometimes i feel so stupid. Well thanks for clearing this up for me Twey.

  4. #4
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok so my GD is installed just as you showed above, yet my images dont show. Any Idea why that is?

  5. #5
    Join Date
    Apr 2006
    Posts
    429
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    probably ImageMagick
    Please don't mind me. I am just posting a lot of nonsense.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Ok so my GD is installed just as you showed above, yet my images dont show. Any Idea why that is?
    If you access your image-generating pages directly, you'll be able to see the errors.
    Quote Originally Posted by jr_yeo
    probably ImageMagick
    ImageMagick and gd are two totally seperate libraries.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    When i access the only page i have that makes the image, nothing shows up. Do I have to download each of the libraries at www.php.net/gd ? I mean like the Font librarys and such.

    Also, when i do print_r(gd_info()) nothing shows up.

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try:
    Code:
    error_reporting(E_ALL);
    at the top of your page.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Feb 2006
    Posts
    158
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The page turns out blank, just like before.

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try not setting the Content-Type header.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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