PHP function sha1_file()

Availability in versions: PHP 4.3.0

Calculate the sha1 hash of a file

Parameters

Parameter Data type Default value Note
$filename string not The filename
$raw_output bool null When true, returns the digest in raw binary format with a length of 20.

Return values

string

A string on success, false otherwise.

Other resources

Official sha1-file documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.