Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2006
    Posts
    92
    Thanks
    4
    Thanked 1 Time in 1 Post

    PHP logging errors

    Hello,

    I am logging errors into a phperrors.log file and not anymore display them through the browser.

    Only problem I have now is that it does not show errors generated by php scripts called from the browser, but only by those that are executed from the command line or through cron.

    Does anyone have an idea if I am doing something wrong here?

    display_errors = Off

    log_errors = On
    error_log = /home/user/domain/public_html/phperrors.log

    Thanks,
    twomt

  • #2
    Senior Coder
    Join Date
    Sep 2005
    Posts
    1,791
    Thanks
    5
    Thanked 36 Times in 35 Posts
    are you changing the correct php.ini? some systems will have separate ones for cli and apache or cgi. If you look at a phpinfo() page, it will give you the path to the ini that it's using.
    My thoughts on some things: http://codemeetsmusic.com
    And my scrapbook of cool things: http://gjones.tumblr.com

  • #3
    New Coder
    Join Date
    Sep 2006
    Posts
    92
    Thanks
    4
    Thanked 1 Time in 1 Post
    Hi,

    thanks for the hint
    That was exactly my issue.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •