(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/..')锟斤拷 |