[pmwiki-users] mini not displaying image

Petko Yotov 5ko at 5ko.fr
Fri Oct 10 00:42:11 CDT 2008


Selon david roundell <roundelld at hotmail.com>:
> i said i'd get back to you - apologies for the delay but here goes. i think
> it's possibly a problem with our installation of php as even with the latest
> cookbook, all points towards the gd2 extension not being correctly enabled.
>
> it is enabled in php.ini and the relative path is correct, however when i
> directly look at the picture in the browser (ie6) i see -
> Fatal error: Call to undefined function: imagecreatefromjpeg() in
> C:\Inetpub\wwwroot\cookbook\mini.php on line 172
> PHP Warning: Unknown(): Unable to load dynamic library
> '.c:\php\extensions\php_gd2.dll' - The specified module could not be found.
> in Unknown on line 0

The dot "." seems wrong to me as it shouldn't be there, the extension_dir path
may be wrong here.

Make sure you have correctly enabled the extension directory in php.ini :
  extension_dir = C:\php\extensions

and that there is a file C:\php\extensions\php_gd2.dll . If you don't have this
file, download the PHP binaries archive from php.net and copy the file from
there.

See also : http://php.net/install.windows.extensions

> we are running php4.4.2. should i upgrade to php 5.2?

PHP 5.2 is better and faster, and it also produces slightly sharper thumbnails.
There is no reason not to uprade to PHP 5, if you can.

Petko



More information about the pmwiki-users mailing list