<?php 
$md5file = md5_file("1.zip");  
echo $md5file;
?>
代码非常简单,如上,获取md5值,如果1.zip比较几百兆或者更小,可以读出md5值,如果该文件比较大,我测试的一个是2g多,则获取不到值,页面等待了一会儿,显示
Fatal error: Maximum execution time of 30 seconds exceeded in F:\file\getMD5.php on line 2
求教