On Thu, 15 Mar 2007, Richard Lynch wrote:
> Date: Thu, 15 Mar 2007 14:35:45 -0500 (CDT)
> From: Richard Lynch <[EMAIL PROTECTED]>
> To: Jason Joines <[EMAIL PROTECTED]>
> Cc: [email protected]
> Subject: Re: [PHP] logging erros and user access to logs
>
> On Thu, March 15, 2007 8:25 am, Jason Joines wrote:
> > Richard Lynch wrote:
> >> Get the errors OFF the web page (display_errors OFF) and into the
> > <?php
> > error_reporting(E_PARSE);
> > ini_set('display_errors','On');
> > ini_set('display_startup_errors','On');
> > include('mypage.php');
> > ?>
> > Then when debugging was done, just delete the debug script.
> >
> > I moved it to a test server and could get it to work but only if
> > display_errors was set to on in the global php.ini file. I can't do
> > that on the production server. The manual says display_errors can be
> > overridden in a script. I used ini_get() to see if the value was
> > actually being changed, it was. However, it still doesn't print the
> > errors unless the global ini is set.
> >
> > Any ideas as to why it's not working?
>
> Put <?php phpinfo();?> into the mypage.php and see if its "Master" and
> "Local" values are different for display_errors.
>
> If they are, then it worked, and you SHOULD see the errors.
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>
Well they weren't different so I guess it didn't work. Seems odd to
me that get_ini would show it has having been changed but phpinfo doesn't.
Jason
===========
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php