chkservd Error Logs

I made a quick PHP web-based tool to grab all the errors from cPanel's chkservd.log for a given date or date range. Aside from grep, less, and guessing with tail -n how many lines back last week or last month starts at there was no easy way to do this.

Since it's PHP there's open_basedir restrictions which may need to be considered, but the script can look for chkservd.log in /var/log, /tmp/, or ./