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?
Printable View
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?
if there is a semi-colon there, you should remove it.Code:extension=php_gd2.dll
Well do you have the gd libraries?
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.
PHP.NET says
Quote:
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:
Quote:
cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
Is your extension_dir setting correct?
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. :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.