Calculating MD5 hash value of a file

Calculating MD5 hash value of a file

Syntax:

string md5_file ( string $filename [, bool $raw_output] )

md5_file funtion is used to calculates MD5 hash of the specified value.

Example:

<?php
$filename = “file1.txt”;
$md5val = md5_file($filename);
echo $md5val;
?>

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.