<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><BR><FONT face=Helv size=2>
petko<BR>
&nbsp;<BR>
i said i'd get back to you - apologies for the delay but here goes. i think it's possibly a problem with&nbsp;our installation of php as even with the latest cookbook, all points towards the gd2 extension not being correctly enabled.<BR>
&nbsp;<BR>
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 - <BR></FONT><B><FONT face="Tms Rmn">
Fatal error</B>: Call to undefined function: imagecreatefromjpeg() in <B>C:\Inetpub\wwwroot\cookbook\mini.php</B> on line <B>172<BR></B>
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 <BR>
&nbsp;<BR></FONT><FONT face=Helv size=2>
so i checked line 172 in the cookbook which resolves to <BR></FONT><FONT face="Courier New" size=2>
&nbsp;<BR>
$imcreate=($gd2)?'imagecreatetruecolor':'imagecreate';<BR>
&nbsp;<BR>
with gd2 enabled i get an error at the bottom of the wiki<BR>
&nbsp;<BR></FONT><FONT face=Helv size=2>
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 <BR>
&nbsp;<BR>
and trying to display the picture now in the sandbox shows:<BR>
&nbsp;<BR>
Mini: PHP-GD image library not found. Exiting. <BR>
&nbsp;<BR>
whereas previously i was getting a red 'x' but i could still click on the photo<BR>
&nbsp;<BR>
we are running php4.4.2. should i upgrade to php 5.2?<BR>
&nbsp;<BR>
thanks<BR>
&nbsp;<BR>
david <BR></FONT></body>
</html>