PHP Manual
Prev |  | Next

# sha1_file

(PHP 4 >= 4.3.0)

sha1_file -- Calculate the sha1 hash of a file

## Description

string sha1_file ( string filename)

Calculates the sha1 hash of `filename` using the US Secure Hash Algorithm 1, and returns that hash. The hash is a 40-character hexadecimal number. Upon failure, `FALSE` is returned.

See also sha1(), crc32(), and md5_file()

Prev | Home | Next
setlocale | Up | sha1