Automatic notification of site errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • firstposter
    New Member
    • Aug 2009
    • 8

    Automatic notification of site errors

    Hello

    Is there an easy way to capture ALL(or most) site errors

    I'm running a site which uses apache, php5 and mysql

    I'm wanting to be automatically notified via email when the following occurs on the site:

    - php errors
    - mysql errors
    - 404 errors
    - any other unexpected site behavior

    would the .htaccess file come into play or just some code pasted in a global php include?

    Thanks
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Originally posted by firstposter
    I'm wanting to be automatically notified via email when the following occurs on the site:

    - php errors
    - mysql errors
    - 404 errors
    - any other unexpected site behavior
    - you can catch every error below E_ERROR using set_error_handl er()
    - mysql errors have to be caught by your script
    - you can make your own 404 page, which can notify you
    - define ‘unexpected site behavior’ and i can tell you more

    Originally posted by firstposter
    would the .htaccess file come into play or just some code pasted in a global php include?
    you’ll need .htaccess for the 404 issue

    Comment

    Working...