Vote Up 0 Vote Down

php check valid image

How to check an image whether it is valid in php ?
flag

Answers


Vote Up 0 Vote Down
if(exif_imagetype('imagename.jpg')){
echo 'Valid image';
}else{
echo 'Not valid';
}
flag | link |

Your Answer

Login before answering

Login with facebook