Name

sha1_file

Synopsis

string sha1_file(string path[, bool binary])

Calculates and returns the sha1 encryption hash for the file at path. A sha1 hash is a 40-character hexadecimal value that can be used to checksum a file’s data. If binary is supplied and is true, the result is sent as a 20-bit binary value instead.

Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.