Results 1 to 7 of 7

Thread: [RESOLVED] Generating thumbnails with GD - IIS issue

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Resolved [RESOLVED] Generating thumbnails with GD - IIS issue

    I have a pre-written PHP script which makes use of GD. I'm attempting to run this in IIS, but I've figured that I'm missing the GD libraries required.

    I'm assuming I'll need to edit php.ini to enable gd, but which lines am I looking for?

  2. #2
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: Generating thumbnails with GD - IIS issue

    Code:
    extension=php_gd2.dll
    if there is a semi-colon there, you should remove it.
    Delete it. They just clutter threads anyway.

  3. #3
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Generating thumbnails with GD - IIS issue

    Well do you have the gd libraries?
    My usual boring signature: Something

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Generating thumbnails with GD - IIS issue

    I don't. I uncommented those lines, and on a page which attempted to use those, I got

    PHP Warning: PHP Startup: Unable to load dynamic library './php_gd2.dll' - The specified module could not be found. in Unknown on line 0

    So I went to the GD website. Couldn't find a DLL. Doing a further search right now for this DLL.

  5. #5

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Generating thumbnails with GD - IIS issue

    PHP.NET says

    Since PHP 4.3 there is a bundled version of the GD lib.

    Fair enough, I have PHP 5.1.4.

    The configure command does mention GD:

    cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"

  6. #6
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Generating thumbnails with GD - IIS issue

    Is your extension_dir setting correct?

  7. #7

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Generating thumbnails with GD - IIS issue

    That was it. I saw that my extensions dir was ./, I changed it to c:\php\extensions.

    And I had extracted the wrong php_gd.dll. Then after much searching found an archive of unsupported releases. That didn't make much sense, but I was able to get a php_gd.dll out of it, and now I'm happily wiping my screen.

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