library directory-hasher
DirectoryHasher is a small library to create files with hashes and file-informations from a directory-structure to compare it with another result later.
robo47/directory-hasher
DirectoryHasher is a small library to create files with hashes and file-informations from a directory-structure to compare it with another result later.
- Sunday, April 1, 2012
- by robo47
- Repository
- 1 Watchers
- 3 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
DirectoryHasher
, (*1)
DirectoryHasher is a small library to create files with hashes and file-informations from a directory-structure to compare it with another result later., (*2)
This allows to detect changes on your webspace which may come from intrusions, (*3)
For compatiblity reasons it should be php 5.2 compliant., (*4)
Requirements
PHP 5.2
- DOM
- SPL, (*5)
Example
In /examples/ you find some hackish example scripts which create result-files,
compares them and one which can be used together with a cronjob to regulary
check a directory and send mails if something changes., (*6)
Further unimplemented ideas
- More flexible Comparator
- Way to filter differences which can be ignored (eg. based on directory)