hash_file

hash_file

(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)

hash_fileGenerate a hash value using the contents of a given file

Description

string hash_file ( string $algo , string $filename [, bool $raw_output = false ] )

Parameters

algo

Name of selected hashing algorithm (i.e. "md5", "sha256", "haval160,4", etc..)

filename

URL describing location of file to be hashed; Supports fopen wrappers.

登录查看完整内容