• PHP Video Tutorials

PHP - Function Sha1 File



Syntax

string setlocale ( int $category , array $locale )

Definition and Usage

It is used to set locale information

Return Values

It returns a string on success or else false on failure

Parameters

Sr.No Parameters & Description
1

filename

It contains the information about the filename of the file to hash

2

raw_output

It is a boolean value that indicates the output

Example

Try out the following example

<?php
   $input = "sample.txt";
   $sha1file = sha1_file($input);
   
   echo $sha1file;
?>

This will produce following result −

aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
php_function_reference.htm
Advertisements