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:

Description

Calculates and compares the MD5 of a file to its expected value.

Related Functions

verify_file_signature, get_file_data, wp_verify_nonce, get_filesystem_method, get_real_file_to_edit

Top Google Results

User discussions

wpseek mobile