hemi519
12-25-2010, 09:33 AM
Hi All,
can anyone help me,.The below is my code
$size = getimagesize("uploads/image.jpeg");
$message = "$size[mime]";
if ($message!=image/jpeg)
{
echo"this image format is not supported"; (here i need it to be displayed as javascript alert, is it possible)
}
and the other thing is, when i used getimagesize()
$size=getimagesize("uploads/image.jpeg");
print_r($size)
Array ( [0] => 2560 [1] => 1600 [2] => 2 [3] => width="2560" height="1600" [bits] => 8 [channels] => 3 [mime] => image/jpeg )
Actually the image is around 60 kb. but it is not showing any image size in the above.
can anyone help me,.The below is my code
$size = getimagesize("uploads/image.jpeg");
$message = "$size[mime]";
if ($message!=image/jpeg)
{
echo"this image format is not supported"; (here i need it to be displayed as javascript alert, is it possible)
}
and the other thing is, when i used getimagesize()
$size=getimagesize("uploads/image.jpeg");
print_r($size)
Array ( [0] => 2560 [1] => 1600 [2] => 2 [3] => width="2560" height="1600" [bits] => 8 [channels] => 3 [mime] => image/jpeg )
Actually the image is around 60 kb. but it is not showing any image size in the above.