NYCPHP Meetup

NYPHP.org

[nycphp-talk] php_admin_flag display_errors in httpd.conf

Jeff Loiselle jeff.loiselle at gmail.com
Thu Apr 27 10:01:51 EDT 2006


Jack,

ini_set('display_errors', 'on') will not work during a fatal parse
error. You can set this in .htaccess or httpd.conf using the
php_admin_flag or php_flag directives. At first I was having problems
with it.. I thought the .htaccess directive wasnt working. But then I
realized I was suppressing the messages with this typo:

error_reporting('E_STRICT');

oops.

On 4/26/06, Jack Scott <lists at jack-scott.com> wrote:
> display_errors = 1 && error_reporting = E_ALL
>
> On Wed, 2006-04-26 at 10:52 -0400, Jeff Loiselle wrote:
> > Jack,
> >
> > I don't think ini_set display_errors catches fatals. But I just solved
> > my problem. Thanks anyway!
> >
> > /jeff
> >
> > On 4/26/06, Jack Scott <lists at jack-scott.com> wrote:
> > > On Wed, 2006-04-26 at 10:37 -0400, Jeff Loiselle wrote:
> > >
> > > > Is the only way to display fatal errors to change php.ini?
> > > no
> > >
> > > you can use ini_set() in your scripts:
> > > http://us2.php.net/manual/en/function.ini-set.php
> > >
> > > Heres a list of directives available to these functions.
> > > http://us2.php.net/manual/en/ini.php#ini.list
> > >
> > > -Jack
> > >
> > >
> > > _______________________________________________
> > > New York PHP Community Talk Mailing List
> > > http://lists.nyphp.org/mailman/listinfo/talk
> > > New York PHP Conference and Expo 2006
> > > http://www.nyphpcon.com
> > > Show Your Participation in New York PHP
> > > http://www.nyphp.org/show_participation.php
> > >
> >
> >
> > --
> > ---
> > Jeff Loiselle
> > Web Developer, Musician, and Observer
> > http://jeff.loiselles.com
> >
> > ""A man is what he thinks about all day long." - Ralph Waldo Emerson
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> > New York PHP Conference and Expo 2006
> > http://www.nyphpcon.com
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> >
> >
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
> New York PHP Conference and Expo 2006
> http://www.nyphpcon.com
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>


--
---
Jeff Loiselle
Web Developer, Musician, and Observer
http://jeff.loiselles.com

""A man is what he thinks about all day long." - Ralph Waldo Emerson



More information about the talk mailing list