You can edit your php.ini or add the lineJellyFish wrote:I don't know how to check the error reporting.
Code: Select all
error_reporting(E_ALL);It would have told you about the missing $
Moderator: General Moderators
You can edit your php.ini or add the lineJellyFish wrote:I don't know how to check the error reporting.
Code: Select all
error_reporting(E_ALL);Code: Select all
//takes the name of the uploaded file
$filename=uploaded_file();
$path="/images/large/"';
$file=$path .$filename;
imgInfo=getimagesize($file);
if(imgInfo[2]==IMAGE_TYPE_JPEG) {imagecreatefromjpg($file);}
//and the rest