note 73208 added to function.md5-file
| From: | gindarATqcmDOTcz at osu1 dot php dot net | Date: | Tue, 13 Feb 2007 14:04:47 +0000 |
| Subject: | note 73208 added to function.md5-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123319@lists.php.net to get a copy of this message | ||
small utility for file MD5 checking
<?php
function checkFile($srcFile,$cpyFile){
$srcFileMD5=md5_file($srcFile);
$cpyFileMD5=md5_file($cpyFile);
if($srcFileMD5==$cpyFileMD5){
return true;
} else {
return false;
}
}
if(!checkFile("src/a.zip","a.zip")) {
echo "Failed! Damaged archive!";
} else {
echo "Passed.";
}
?>
----
Server IP: 212.24.129.110
Probable Submitter: 194.212.26.195
----
Manual Page -- http://www.php.net/manual/en/function.md5-file.php
Edit -- https://master.php.net/note/edit/73208
Del: integrated -- https://master.php.net/note/delete/73208/integrated
Del: useless -- https://master.php.net/note/delete/73208/useless
Del: bad code -- https://master.php.net/note/delete/73208/bad+code
Del: spam -- https://master.php.net/note/delete/73208/spam
Del: non-english -- https://master.php.net/note/delete/73208/non-english
Del: in docs -- https://master.php.net/note/delete/73208/in+docs
Del: other reasons-- https://master.php.net/note/delete/73208
Reject -- https://master.php.net/note/reject/73208
Search -- https://master.php.net/manage/user-notes.php