Hi I am wonder if there is any way to ping a website or send an email or notification to owner anytime the error.log file is edited? I was hoping to find a php scrip which I can run periodically in my cron jobs and the php would send an email if the file has gotten bigger. Does anyone know of anything like this?
It wouldn't be hard to write, you just need a separate file to store the file size each time it's checked.
Having and extra file would be a problem. Can you point me somewhere where I could start? Total php newbie but willing to learn
Really? https://www.php.net/manual/en/ref.dir.php get the contents of the directory, check the size, send an email if it's changed