I have a project requirement, Where I have to check the integrity of each PHP files before executing it using md5 or some method. The hash value is stored safely within the server.
What I have done: I have used the auto_prepend_file feature and I am able to check the hash value of each file executed, But auto-prepend-file works only for the very first file executed, not the files executed using include_once or using function call.
What is the way to check all the files before executing. I am using lighthhtpd on linux OS.