Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir / madam

I just want to store image with specific dimension (600*600) and give an error message if image is not in a given diemension.
Posted

1 solution

 
Share this answer
 
v2
Comments
Rajkumar_007 24-Jul-14 3:27am    
";echo "Image height " .$height;
echo "<BR>";
echo "Image type " .$type;
echo "<BR>";
echo "Attribute " .$attr;

if (move_uploaded_file($file['tmp_name'], $path))
{
// Move succeed.
} else {
// Move failed. Possible duplicate?
}
$sql = mysql_query("INSERT INTO image(path) VALUES ('$path')");
?>

it gives error at getimagesize() like getimagesize(Koala.jpg): failed to open stream: No such file or directory in given folder

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900