I have the following snippet from my code:
switch ($extention)
{
case "gif": $src = @imagecreatefromgif($uploadedfile); break;
case "jpeg": $src = @imagecreatefromjpeg($uploadedfile); break;
case "png": $src = @imagecreatefrompng($uploadedfile); break;
default: $src = @imagecreatefromjpeg($uploadedfile); break;
}
if(!$src)
die("Error: Could not upload image code:#011");
The script terminates but does not return error. Anyone know why?