GIT.Harvie.CZ
/
mirrors
/
Programs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added lot of junk laying around on harvie.cz
[mirrors/Programs.git]
/
php
/
skripty
/
integrity_check.php
diff --git a/php/skripty/integrity_check.php
b/php/skripty/integrity_check.php
new file mode 100644
(file)
index 0000000..
27e51f8
--- /dev/null
+++ b/
php/skripty/integrity_check.php
@@ -0,0
+1,10
@@
+<?php
\r
+
\r
+function file_chceck($file, $cycles = 4) {
\r
+ $md5 = md5_file($file);
\r
+ for(;$cycles>0;$cycles--) {
\r
+ $last_md5 = $md5;
\r
+ if( ($md5 = md5_file($file)) != $last_md5 ) { return 0; }
\r
+ }
\r
+ return 1;
\r
+}
\r
This page took
0.132052 seconds
and
4
git commands to generate.