hi again all php gurus,
now I had a small problem. found the web i found out that some version of GD does not work with the function of imagecrearefromstring($data). My script got stuck at the point (i'd done some error checking to capture the error).
$tempFileName = $_FILES['form_data']['tmp_name'];
// temporary file at server side
$data = fread(fopen($tempFileName, "r"), filesize($tempFileName));
// Try to read image
$src_img = ImageCreateFromString($data);
// try to create image
if (!$src_img) // error, image is not a valid jpg
{ die ("Sorry.It was not possible to read photo $photoFileName. Choose another photo in JPG format.");
}
My script will stop there and one execute anthing below it. Anyone know how to solve the imagecreatefromstring() function? Or is there any workable GD library? I'm using IIS + PHP 4.3.2 + MySQL