The sha1_file() function calculate the sha1 hash of a file
sha1_file ( string $string ,raw_output=FALSE) : string
Parameter Name | Descrption |
---|---|
$string | Required, The string. |
raw_output | Optional, Specifies the raw_output for hexadecimal number or binary format
|
When TRUE - Raw 20 bit character format, When FALSE- 40 character hexadecimal number
$file = 'php_sha1_file.zip'; echo sha1_file($file);
Related Functions