sha1_file()
sha1_file - Calculate the sha1 hash of a file
Syntax
string sha1_file (
string $filename,
bool $raw_output)
Arguments
- filename - The filename of the file to hash.
- raw_output - When TRUE, returns the digest in raw binary format with a length of 20.
Description
Calculates the sha1 hash of the file specified by filename using the » US Secure Hash Algorithm 1, and returns that hash. The hash is a 40-character hexadecimal number.
Version
PHP 4.3.0, 5
Return value
Returns a string on success, FALSE otherwise.