I am trying to write a function wherein any change in the files in any folder on my webserver would shoot me an email alert. I thought that one easy way of doing it would be via monitoring files/folders for their checksum at periodic intervals but I have no clue how to calculate checksum for a file or folder via php.
Can anyone point me in the right direction. I tried searching on google, but I guess I might be using the wrong keywords..