使用PHP清除error_log文件

Okay, so my error log files are getting filled up really fast due to some unfixable errors (they exist due to the site's design) and it's using up a lot of my webspace pretty fast.

However, I do not need the error_log files at all. I've been looking around and I cannot find a way to stop error_logs in cPanel, so I thought that perhaps I could run a script on each page a user visits that empties or deletes the error_log file.

Is this possible? the error_log file is in the document root of each of my websites

You can disable error logging using corresponding php.ini setting: http://php.net/manual/en/errorfunc.configuration.php#ini.log-errors