Menu Riverview Church

SHA1_FILE

Calculate the sha1 hash of a file

SYNTAX

sha1_file ( string $filename [, bool $raw_output = FALSE ] ) : string

PARAMETERS

filename

The filename of the file to hash.

raw_output

When TRUE, returns the digest in raw binary format with a length of 20.

RETURN

Returns a string on success, FALSE otherwise.

EXAMPLES

FILENAME

f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0

RAW_OUTPUT

f7ff9e8b7bb2e09b70935a5d785e0cc5d9d0abf0

PHP