You are here : phpstringsha1_file

sha1_file() - string


Parameters :
  • filename - The filename of the file to hash.
  • raw_output - When TRUE, returns the digest in raw binary format with a length of 20.

  • Syntax

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


    Example

    <?phpforeach(glob('/home/Kalle/myproject/*.php') as $ent){    if(is_dir($ent))    {        continue;    }    echo $ent . ' (SHA1: ' . sha1_file($ent) . ')', PHP_EOL;}?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference