I'm trying to disable displaying of errors in a file and just log them into a log file
<?php
error_reporting('E_ALL');
echo $x;
?>
The log file works when I remove the error_reporting('E_ALL') but then the errors are also displayed. Is there another way to do this, but disabling error reporting on specific pages only.