PHP is showing me errors, but I don't know why.
The errors:
Warning: imagejpeg(): supplied argument is not a valid Image resource in h:\wampp1\htdocs\profile.php on line 4
Warning: imagedestroy(): supplied argument is not a valid Image resource in h:\wampp1\htdocs\profile.php on line 5
And the source code:
<?php
IF($pic == "create" && isset($uid) && isset($pid) && isset($pno)) {
$image = @ImageCreateFromJPEG("gallery/".$uid.".".$pid.".".$pno.".jpg");
ImageJpeg($image);
ImageDestroy($image);
exit;
}
?>
What's wrong with my PHP or with my Script?
I don't find any errors
Please help me