Global.asax for php
I've been a .Net developer and a Java developer and TBH I liked .Net more when it comes to web (Except that I had to use IIS). Recently I've learned php (Amazingly simple) but I was wondering if in php you could do something like the G开发者_如何学Golobal.asax in .Net. I'm just looking for someway to mimic the Application_Error event.
I think the following are closest to what you want:
- set_error_handler
- set_exception_handler
精彩评论