error reporting

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have two systems - development and test.

When I run a script with an error on the development system it
reports the error.  When I run it on the test system it just
quietly fails.

The scrips start with
session_start ();

Where should I look to find out why the test system is not
reporting errors ?


Re: error reporting

Quoted text here. Click to load it

Look in the /etc/php.ini files on the two systems for the Error
handling and logging sections:

; Error handling and logging ;

And compare the settings in the test and development systems.  Note that
for a *production* system you don't want to *display* errors, but it
might make sense to *log* them.  Logged messages will land in Apache's
error_log (generally in /var/log/httpd/error_log on most Linux systems).

If the errors are happening in the session_start code, that won't be
reported unless the /etc/php.ini file enables error reporting.  I don't
know if putting the error_reporting() call *before* the session_start()
call will work or not -- that might be all you need to do.

Quoted text here. Click to load it

Robert Heller             -- 978-544-6933 /
Deepwoods Software        -- /
()  ascii ribbon campaign -- against html e-mail
/\   -- against proprietary attachments


Re: error reporting

Quoted text here. Click to load it

The php manual page on error_reporting also refers you to the
display_errors setting,.

Site Timeline