My error log

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pablito

    My error log

    Hi at all
    still now to write into my server error log I used .htaccess that when
    intercept a server error call a php page that write into my serverlog.txt a
    line containing all datas about current error and after redirect the user to
    an other page.
    Somone tell me that this it is not the best way but the best way is to
    intercept server errors directly ftom php pages
    I 'ld like to know what is truely the best way?
    Regards
    Pab


  • AlexVN

    #2
    Re: My error log



    On Nov 1, 7:04 pm, "Pablito" <pabl...@nospam .comwrote:
    Hi at all
    still now to write into my server error log I used .htaccess that when
    intercept a server error call a php page that write into my serverlog.txt a
    line containing all datas about current error and after redirect the user to
    an other page.
    Somone tell me that this it is not the best way but the best way is to
    intercept server errors directly ftom php pages
    I 'ld like to know what is truely the best way?
    Regards
    Pab
    Read http://php.net/register_shutdown_function and
    http://php.net/set_error_handler. I believe, this is exactly what you
    need.

    Sincerely,
    Alexander
    http://www.alexatnet.com/ - PHP/ZendFramework/Ajax blog

    Comment

    Working...