[ciapug] Error handling

Jerry Heiselman jweida at gmail.com
Thu Dec 29 07:29:02 CST 2005


Also try overriding the setting at the top of your scripts with the
ini_set function.  That may get you around the problem in the mean
time.


On 12/29/05, Jerry Heiselman <jweida at gmail.com> wrote:
> Yeah, this was when I noticed the problem on the Solaris machine.
> Something went wrong during my build that caused this exact behavior.
> It seemed like PHP was completely ignoring the php.ini file and just
> using defaults all of the time.  I remember searching around on the
> news groups, but only found other people complaining of the same
> thing.  I rebuilt the package and that seemed to fix it.
>
> Jerry
>
> On 12/29/05, Carl Olsen <carl-olsen at mchsi.com> wrote:
> > I use error_log() even though I could probably make the ini setting at the
> > top of each page, and it's probably easier to do it with the ini setting.  I
> > don't know why I like error_log() better, but it sounds like it might be an
> > option you could use.
> >
> > -----Original Message-----
> > From: ciapug-bounces at cialug.org [mailto:ciapug-bounces at cialug.org] On Behalf
> > Of Dave J. Hala Jr.
> > Sent: Wednesday, December 28, 2005 10:26 PM
> > To: PHP List
> > Subject: Re: [ciapug] Error handling
> >
> > Ok... in /etc/php.ini I've got display_errors = on and log_errors =
> > on.   When I run phpinfo.php, It shows me that it is using /etc/php.ini.
> > It also says that display_errors = off and log_errors = on.
> >
> > Very strange indeed.
> >
> >
> >
> >
> > On Wed, 2005-12-28 at 22:16, Tony Bibbs wrote:
> > > There are a few settings in there you will need to tweak. If memory
> > > serves me right, you want display_errors = on as well as log_errors =
> > > on.  I distinctly remember you needed two settings for it to work right.
> > > Read the .ini in that section...it's pretty well documented.  If you
> > > don't get it let me know and I'll dig up my .ini from work.
> > >
> > > --Tony
> > >
> > > Jerry Heiselman wrote:
> > > > What you should probably do is leave display_errors = off and at the
> > > > top of your application do a ini_set('display_errors', 1);
> > > >
> > > > That way when you are done developing, you just have to comment out
> > > > that line to restore it to "production" mode.
> > > >
> > > > As for when you change the value in php.ini, double-check to make sure
> > > > the php.ini you are editing is the one being used by PHP.
> > > >
> > > > If that doesn't do it, then the only other time I saw this behavior
> > > > was after a bad build on a Solaris box.
> > > >
> > > > Jerry
> > > >
> > > >
> > > > On 12/28/05, Dave J. Hala Jr. <dave at 58ghz.net> wrote:
> > > >
> > > >>I'm doing some work on a Centos 4.2 box with all the latest patches.
> > > >>I'm running php 4.3.9-3.9 and mysql 4.1.12-3.RHEL4.1
> > > >>
> > > >>In this version by default PHP doesn't send errors to the browser. It
> > > >>logs them to a file. This really sucks when you're doing development.
> > > >>
> > > >>I've tweaked the php.ini so that display_errors = On, and restarted
> > > >>apache. This doesn't change anything. I've googled it and this seems to
> > > >>be the procedure. It just doesn't work.
> > > >>
> > > >>Anyone got any thoughts?
> > > >>
> > > >>:) Dave
> > > >>
> > > >>--
> > > >>
> > > >>Open Source Information Systems, Inc. (OSIS)
> > > >>Dave J. Hala Jr., President <dave at osis.us>
> > > >>641.485.1606
> > > >>
> > > >>_______________________________________________
> > > >>ciapug mailing list
> > > >>ciapug at cialug.org
> > > >>http://cialug.org/mailman/listinfo/ciapug
> > > >>
> > > >
> > > > _______________________________________________
> > > > ciapug mailing list
> > > > ciapug at cialug.org
> > > > http://cialug.org/mailman/listinfo/ciapug
> > > _______________________________________________
> > > ciapug mailing list
> > > ciapug at cialug.org
> > > http://cialug.org/mailman/listinfo/ciapug
> > --
> >
> > Open Source Information Systems, Inc. (OSIS)
> > Dave J. Hala Jr., President <dave at osis.us>
> > 641.485.1606
> >
> > _______________________________________________
> > ciapug mailing list
> > ciapug at cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
> >
> > _______________________________________________
> > ciapug mailing list
> > ciapug at cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
> >
>


More information about the ciapug mailing list