FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


CRC on all folders/subfolders





happy_harry
Does anyone know a CRC script that will check the CRC not only of the files in a folder but also in all of the sub-folders (I want tto know if the files on my backup site are an exact copy of the original)
simplyw00x
this is a linux webserver, hence

Code:
diff -rv foo


will show you all differing files in the directory foo and all subdirectories. It can be piped to a file:

Code:
diff -rv foo > hats.txt


and this can be used in a shell script (as above) or as a PHP script:
Code:
<?php
  server("diff -rv foo > hats.txt");
?>
Related topics
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.