PDA

Click to See Complete Forum and Search --> : [RESOLVED] Generating thumbnails with GD - IIS issue


mendhak
Oct 27th, 2007, 04:21 PM
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?

TheBigB
Oct 27th, 2007, 04:31 PM
extension=php_gd2.dll
if there is a semi-colon there, you should remove it.

dclamp
Oct 27th, 2007, 07:37 PM
Well do you have the gd libraries?

mendhak
Oct 28th, 2007, 01:41 PM
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.

mendhak
Oct 28th, 2007, 01:51 PM
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"

penagate
Oct 28th, 2007, 02:02 PM
Is your extension_dir setting correct?

mendhak
Oct 28th, 2007, 02:13 PM
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 (http://uk.php.net/releases/index.php). :ehh: 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.