How to calculates the md5 hash of a file in PHP

1 Answer

0 votes
// string md5_file( string $filename [, bool $raw_output = false ] )

$file = 'd:\\data.txt';

echo md5_file($file);

/*
run: 

08065798f6f07031cc582df061a1cf13  

*/

 



answered Jul 5, 2016 by avibootz

Related questions

1 answer 133 views
133 views asked Sep 25, 2023 by avibootz
2 answers 221 views
2 answers 121 views
121 views asked Nov 20, 2023 by avibootz
1 answer 108 views
1 answer 118 views
2 answers 199 views
...