Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7632 > unrolled thread
| Started by | bill <william@TechServSys.com> |
|---|---|
| First post | 2012-11-23 11:01 -0500 |
| Last post | 2012-11-26 02:42 -0800 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.php
error reporting bill <william@TechServSys.com> - 2012-11-23 11:01 -0500
Re: error reporting Robert Heller <heller@deepsoft.com> - 2012-11-23 10:32 -0600
Re: error reporting Captain Paralytic <paul_lautman@yahoo.com> - 2012-11-26 02:42 -0800
| From | bill <william@TechServSys.com> |
|---|---|
| Date | 2012-11-23 11:01 -0500 |
| Subject | error reporting |
| Message-ID | <k8o6l1$4pc$1@speranza.aioe.org> |
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 (); error_reporting(E_ALL); Where should I look to find out why the test system is not reporting errors ? bill
[toc] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2012-11-23 10:32 -0600 |
| Message-ID | <FPWdnWJtU46EODLNnZ2dnUVZ_tOdnZ2d@giganews.com> |
| In reply to | #7632 |
At Fri, 23 Nov 2012 11:01:28 -0500 bill <william@TechServSys.com> wrote:
>
> 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 ();
> error_reporting(E_ALL);
>
> Where should I look to find out why the test system is not
> reporting errors ?
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.
>
> bill
>
--
Robert Heller -- 978-544-6933 / heller@deepsoft.com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
[toc] | [prev] | [next] | [standalone]
| From | Captain Paralytic <paul_lautman@yahoo.com> |
|---|---|
| Date | 2012-11-26 02:42 -0800 |
| Message-ID | <cd809b81-829d-4812-abab-12920f9c2728@p17g2000vbn.googlegroups.com> |
| In reply to | #7632 |
On Nov 23, 4:01 pm, bill <will...@TechServSys.com> wrote: > 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 (); > error_reporting(E_ALL); > > Where should I look to find out why the test system is not > reporting errors ? > > bill The php manual page on error_reporting also refers you to the display_errors setting,.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web