Forum und email

md5_file

(PHP 4 >= 4.2.0, PHP 5, PECL hash:1.1-1.3)

md5_file — Calcola l'hash md5 del file dato

Descrizione

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

Calcola l'hash md5 del file filename utilizzando l' » RSA Data Security, Inc. MD5 Message-Digest Algorithm, e lo restituisce. L'hash prodotto è un numero esadecimale di 32 caratteri. Se il secondo parametro raw_output è impostato a TRUE, il valore md5 è restituito nel formato binario raw con una lunghezza di 16 caratteri.

Nota: Il parametro opzionale raw_output è stato aggiunto in PHP 5.0.0, e come default vale FALSE

Questa funzione ha il medesimo scopo dell'utilità di linea di comando md5sum.

Vedere anche md5(), crc32() e sha1_file().


ttp://www.google-analytics.com/urchin.js" type="text/javascript">