I've looked around for solutions but nothing seems to work.
I'm not sure if GD is even installed properly. I've placed php_gd2.dll into the correct extensions directory and I've uncommented the line in the php.ini file so that extension=php_gd2.dll is read by php.
When I look at phpinfo( ), the only evidence of GD being anywhere is here at the top of the HTML page:
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
There's no other listing of GD anywhere in the phpinfo page so I have no idea what else to do. I've tried manually loading the extension using dl( ) but it won't allow me to do that either.
I'm using PHP 5.1 on Microsoft IIS 5.1 (on Microsoft Windows XP O/S).
And this is the code where the error is occurring:
Code: Select all
/*Creates a thumbnail version of the image */
if($_FILES[$this->field_name]["type"][$key]=='image/pjpeg'
|| $_FILES[$this->field_name]["type"][$key]=='image/jpeg'
|| $_FILES[$this->field_name]["type"][$key]=='image/JPG')
{
$img=imagecreatefromjpeg($_FILES[$this->field_name]['tmp_name'][$key]);
}