Python md5_file() function
Python md5_file() function
The md5_file() function in PHP calculates the md5 hash of a given file.
Syntax
md5_file ( string $filename [, bool $raw_output ] )
Parameter
filename(required)- This parameter signifies the file to be calculated.
raw_output(optional)- It takes a boolean value that specifies hex or binary output format:
- TRUE – Raw 16 character binary format
- FALSE – Default. 32 character hex number
Return
This function returns a string on success, FALSE otherwise.
Example 1
Output
c540ce201d398a7d275c6e0c669097f3
Example 2
Output
c540ce201d398a7d275c6e0c669097f3 c540ce201d398a7d275c6e0c669097f3 ????/{??M??