diff --git a/reference/strings/functions/md5-file.xml b/reference/strings/functions/md5-file.xml index a5c0ef433d..30337640af 100644 --- a/reference/strings/functions/md5-file.xml +++ b/reference/strings/functions/md5-file.xml @@ -1,44 +1,101 @@ - + - - - md5_file - Calculates the md5 hash of a given file - - - Description - - stringmd5_file - stringfilename - boolraw_output - - - Calculates the MD5 hash of the file specified by the - filename parameter using the - RSA Data Security, Inc. - MD5 Message-Digest Algorithm, and returns that hash. - The hash is a 32-character hexadecimal number. If the optional - raw_output is set to &true;, then the md5 digest - is instead returned in raw binary format with a length of 16. - - - - The optional raw_output parameter was added in - PHP 5.0.0 and defaults to &false; - - - - This function has the same purpose of the command line utility - md5sum. - - - See also md5, - crc32, and - sha1_file. - - - + + + md5_file + Calculates the md5 hash of a given file + + + &reftitle.description; + + stringmd5_file + stringfilename + boolraw_output + + + Calculates the MD5 hash of the file specified by the + filename parameter using the + RSA Data Security, Inc. + MD5 Message-Digest Algorithm, and returns that hash. + The hash is a 32-character hexadecimal number. + + + + + &reftitle.parameters; + + + + filename + + + The filename + + + + + raw_output + + + When &true;, returns the digest in raw binary format with a length of + 16. Defaults to &false;. + + + + + + + + + &reftitle.returnvalues; + + Returns a string on success, &false; otherwise. + + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.0.0 + + Added the raw_output parameter + + + + 5.1.0 + + Changed the function to use the streams API. It means that you can use + it with wrappers, like md5_file('http://example.com/..') + + + + + + + + + + &reftitle.seealso; + + + md5 + sha1_file + crc32 + + + + - - - sha1_file - Calculate the sha1 hash of a file - - - Description - - stringsha1_file - stringfilename - boolraw_output - - - Calculates the sha1 hash of filename using the - US Secure Hash Algorithm 1, - and returns that hash. The hash is a 40-character hexadecimal number. - Upon failure, &false; is returned. If the optional - raw_output is set to &true;, then the sha1 digest - is instead returned in raw binary format with a length of 20. - - - - The optional raw_output parameter was added in - PHP 5.0.0 and defaults to &false; - - - - See also sha1, crc32, - and md5_file - - - + + + + sha1_file + Calculate the sha1 hash of a file + + + &reftitle.description; + + stringsha1_file + stringfilename + boolraw_output + + + Calculates the sha1 hash of filename using the + US Secure Hash Algorithm 1, + and returns that hash. The hash is a 40-character hexadecimal number. + + + + + &reftitle.parameters; + + + + filename + + + The filename + + + + + raw_output + + + When &true;, returns the digest in raw binary format with a length of + 20. Defaults to &false;. + + + + + + + + + &reftitle.returnvalues; + + Returns a string on success, &false; otherwise. + + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.0.0 + + Added the raw_output parameter + + + + 5.1.0 + + Changed the function to use the streams API. It means that you can use + it with wrappers, like sha1_file('http://example.com/..') + + + + + + + + + + &reftitle.seealso; + + + sha1 + md5_file + crc32 + + + +