(PHP 4 >= 4.3.0, PHP 5, PHP 7)
sha1_file — �����ļ��� sha1 ɢ��ֵ
$filename
[, bool $raw_output = FALSE
] ) : string
����» ������ȫɢ���㷨 1�����㲢������ filename ָ�����ļ��� sha1 ɢ��ֵ����ɢ��ֵ��һ�� 40 �ַ����ȵ�ʮ���������֡�
filenameҪɢ�е��ļ����ļ�����
raw_output
���������Ϊ TRUE��sha1 ժҪ���� 20 �ַ����ȵ�ԭʼ��ʽ���ء�
�ɹ�����һ���ַ��������� FALSE��
Example #1 sha1_file() ����
<?php
foreach(glob('/home/Kalle/myproject/*.php') as $ent)
{
if(is_dir($ent))
{
continue;
}
echo $ent . ' (SHA1: ' . sha1_file($ent) . ')', PHP_EOL;
}
?>
| �汾 | ˵�� |
|---|---|
| 5.1.0 | �ı亯����ʹ���� API������ζ�ſ���ʹ�ð�װ�������� sha1_file('http://example.com/..')�� |