Simple JPEG image validation

A function that does a simple JPEG image validation

Usage

Pass as argument the $_FILES array for one image: $_FILES['img']

Comments