• PHP Video Tutorials

PHP - Function Md5 File



Syntax

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

Definition and Usage

It is used to calculates the md5 hash of a given file

Return Values

It returns the string on success and false on failure

Parameters

Sr.No Parameters & Description
1

filename

It contains the information about filename.

2

raw_output

When TRUE, returns the digest in raw binary format with a length of 16.

Example

Try out the following example

<?php
   $input = "Md5.txt";
   $md5file = md5_file($input);
   
   echo $md5file;
?>
php_function_reference.htm
Advertisements