Hello Could you provide the error handling function you mentioned? I've been looking for something to do that for quite a while now.
Thanks, Nate -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of Bruno Lustosa Sent: Wednesday, April 25, 2007 2:26 PM To: [email protected] Subject: Re: [php-list] notice errors all over the place!!!2 On 4/25/07, Brian E Boothe <[EMAIL PROTECTED]> wrote: > yipppieee look what i have on another PHP Code im trying to run and > debug : > > *Notice*: Undefined variable: _SESSION in > *C:\Inetpub\wwwroot\fundanemt\install\index.php* on line *81* Err... By default, PHP doesn't output any notices. Perhaps you should check your error reporting level? At my projects, I normally leave Notices enabled, so that I can see parts of the code that could result in potential problems. However, I use an error handling function that saves the errors elsewhere (mail, jabber, textfile, sql, etc) instead of printing errors on the browser. Although most scripts run fine with loads of Notices, I aggree that good code should not produce them. If you simply don't want to see the errors, error_reporting() (or php.ini) will help you. If you are trying to debug and get rid of the notices instead of just hiding them, then you'll need to follow the code and fix them one after another. -- Bruno Lustosa <[EMAIL PROTECTED]> ZCE - Zend Certified Engineer - PHP! http://www.lustosa.net/ [Non-text portions of this message have been removed]
