How do I easily log PHP error messages to a log file?
Posted: Fri May 02, 2008 2:47 pm
Hi,
I am currently working with PayPal's IPN and some of my scripts may have run-time errors or some fatal errors; however, as it is executed by IPN, I have no idea where to debug except by littering log file entries everywhere.
Is there a way to log PHP's error messages to a log file? I know that there is set_error_handler(), but it seems too much to test just one script...
I am currently working with PayPal's IPN and some of my scripts may have run-time errors or some fatal errors; however, as it is executed by IPN, I have no idea where to debug except by littering log file entries everywhere.
Is there a way to log PHP's error messages to a log file? I know that there is set_error_handler(), but it seems too much to test just one script...