Scan image files for malicious code.
verify_image( string $file ) : bool
$file (string) (Required) Path to image.
(bool) True or false, depending on whether the image is safe or not.
$file = IMAGES.'phpfusion-icon.png';
if (verify_image($file)) {
echo 'The image is safe.';
} else {
echo 'The image is not safe.';
}
// The image is safe.