Calculate the MD5 hash of the text file "test.txt" in PHP
Description
The following code shows how to calculate the MD5 hash of the text file "test.txt".
Example
/*w w w . j a v a 2 s . c om*/
<?php
$filename = "test.txt";
$md5file = md5_file($filename);
echo $md5file;
?>
The code above generates the following result.