emotionlovesyou Posted April 6, 2008 Share Posted April 6, 2008 I need to know whenever there's an error in PHP on my website, http://www.CozySidewalkCafe.com. (If I coded something wrong and users can't use something, I need to fix it asap.) Is there something I can setup in the PHP installation so I get an email whenever there's an error? Or can I setup some sort of log I can check periodically? Any tips, ideas, or tutorials you know of would be greatly appreciated! Thnx Link to comment https://forums.phpfreaks.com/topic/99817-solved-php-error-reporting/ Share on other sites More sharing options...
maexus Posted April 6, 2008 Share Posted April 6, 2008 I did a quick google search for php error logging and came up with a lot of results. Here is one at random http://www.ilovejackdaniels.com/php-ini-guide/error-handling-and-logging/ Link to comment https://forums.phpfreaks.com/topic/99817-solved-php-error-reporting/#findComment-510509 Share on other sites More sharing options...
emotionlovesyou Posted April 6, 2008 Author Share Posted April 6, 2008 Never mind. Set_error_handler was the answer I was looking for. I just looked around the internet and found it. Thanks anyway, guys! I can write my own function and use set_error_handler to call that function every time there's an error. The custome function can send an email or keep a log. Fabulous! I luv PHP Link to comment https://forums.phpfreaks.com/topic/99817-solved-php-error-reporting/#findComment-510534 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.