Commit | Line | Data |
---|---|---|
8de51304 H |
1 | <?php\r |
2 | \r | |
3 | function file_chceck($file, $cycles = 4) {\r | |
4 | $md5 = md5_file($file);\r | |
5 | for(;$cycles>0;$cycles--) {\r | |
6 | $last_md5 = $md5;\r | |
7 | if( ($md5 = md5_file($file)) != $last_md5 ) { return 0; }\r | |
8 | }\r | |
9 | return 1;\r | |
10 | }\r |