verify_file_md5
verify_file_md5 ( $filename, $expected_md5 )
Parameters:- (string) filename The filename to check the MD5 of.
- (string) expected_md5 The expected MD5 of the file, either a base64-encoded raw md5, or a hex-encoded md5.
Returns:- (bool|WP_Error) True on success, false when the MD5 format is unknown/unexpected, WP_Error on failure.
Defined at: - Introduced in WordPress: 3.7.0
- Deprecated in WordPress: —
Description
Calculates and compares the MD5 of a file to its expected value.