Here is a handy way to get sha1 of a file's
contents.
<?php
function sha1_of_file($file) {
if
(!file_exists($file))
return false;
$contents =
join("",file($file));
return
sha1($contents);
}
?>
| PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册 |
| view source | feedback | send page | sitemap | aboutus |
|
Copyright ® 2002-2003 PHPE.NET. All rights reserved Last updated:2002-11-22 |