The md5_file() function calculate the md5_file hash of a given file
Syntax
md5_file ( string $string ,raw_output=FALSE) : string
Parameters
| Parameter Name |
Descrption |
| $string |
Required, The string. |
| raw_output |
Optional, Specifies the raw_output for hex or binary format
- TRUE - Raw 16 bit binary format
- FALSE(Default) - 32-character hexadecimal number
|
md5_file() examples
$file = 'php_mf5_file.zip';
echo md5_file($file);
Related Functions
- sha1_file(): Calculate the sha1 hash of a file
- crc32(): Calculates the crc32 polynomial of a string
- crypt(): One-way string hashing
- md5(): Calculate the md5 hash of a string
- sha1(): Calculate the sha1 hash of a string