Definition:
function file_is_valid_image($path) {}
Validate that file is an image.
Parameters
- string $path: File path to test if valid image.
Return values
returns:True if valid image, false if not valid image.
Source code
function file_is_valid_image($path) { $size = @getimagesize($path); return !empty($size); }
1066
No comments yet... Be the first to leave a reply!