On Wednesday 04 June 2003 18:16, Svein Larsen wrote: > Anybody got a good solution for capturing errors in php scripts? > I can catch the errors by logging them to a log file (log_errors in > php.ini) My problem is that i'm running a lot of sites on my server and i > need to know wich site generate the error and cant find any way to get this > in the log file. > I'm thinking og editing the php-source to get this done but i hope there is > a simpler solution.
set_error_handler(), and maybe auto_prepend_file in php.ini -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* When a man is tired of London, he is tired of life. -- Samuel Johnson */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php