Gen. partnerAlgotech

PHP function md5_file()

Calculates the md5 hash of a given file

|
September 11, 2019

Availability in versions: PHP 4.2.0

Calculates the md5 hash of a given file

Parameters

Parameter Data type Default value Note
$filename string not The filename
$raw_output bool null When true, returns the digest in raw binary format with a length of 16.

Return values

string

A string on success, false otherwise.

Other resources

Official md5-file documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.