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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    434
    Thanks
    7
    Thanked 3 Times in 3 Posts

    catch all errors in to a log file but not show on page

    I wish to store all errors, from page not found, php coding errors, variable not found, the works. All in a error_log file.

    in php.ini i have..

    error_log = "/home/accname/errors.log"

    in my presets file that is included in every webpage i have...

    error_reporting(E_ALL);

    but still page not found and coding errors where i removed some letters from session variables in my testing file, these are not stored, only shown on the page.


    How do I have them stored not shown, and have all errors that can be got stored in the file?

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    1,997
    Thanks
    15
    Thanked 234 Times in 234 Posts
    Quote Originally Posted by needsomehelp View Post
    I wish to store all errors, from page not found, php coding errors, variable not found, the works. All in a error_log file.

    in php.ini i have..

    error_log = "/home/accname/errors.log"

    in my presets file that is included in every webpage i have...

    error_reporting(E_ALL);

    but still page not found and coding errors where i removed some letters from session variables in my testing file, these are not stored, only shown on the page.


    How do I have them stored not shown, and have all errors that can be got stored in the file?
    Normally Apache keeps logs, including error logs. It doesn't keep php logs, but you can make your own setup for that. In my Linux system the logs are in the /etc/httpd/logs directory.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


  •  

    Posting Permissions

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