Hi,
I need to create a simple PHP script that writes php errors (Warning notices etc.) to a text file (no MySQL necessary). I know PHP has a built in error log function but the examples given in the manual are too complex. Any ideas where I could start?
I already have error reporting enabled at the start of my scripts,
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL & ~E_NOTICE);
?>
But I need a way of capturing the error messages in a log. Any ideas where I could start?
Thanks!
Peter.