Here's a snippet from my  PHI_INI

;   - Show all errors
;
error_reporting  =  E_ALL
;error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_CORE_WARNING  &
~E_USER_WARNING & ~E_USER_NOTICE & ~E_COMPILE_WARNING

display_errors = On

The commented out error_reporting was the original setting and
"display_errors" was "Off"

I changed them to the values you see above. When I execute my script and use
init_get() the values appear to be right, but do I need to do something to
get PHP to actually work off of these setting once they have been changed,
i.e. some kind of refresh

Thanks



"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Monday 19 January 2004 22:34, Chris Edwards wrote:
>
> > I retried most of the combinations and still cannot get it to report
syntax
> > errors. If I have errors, from say undefined variables, the error
handler
> > catches those just fine.
>
> Again:
>
> > > But if "display_errors" (in php.ini) is disabled then syntax errors
will
> >
> > not
> >
> > > be displayed -- they can only be viewed in the error log.
>
> IOW have a look at the output of phpinfo(), if "display_errors" is off,
then
> no matter what combinations you try you will NOT be able to see syntax
> errors!
>
> > Question: when I use the ini_set, does that stay set for the lifetime of
> > the script executing or is it set for good?
>
> Only during the execution of the script.
>
> -- 
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> Wouldn't this be a great world if being insecure and desperate were a
turn-on?
> -- "Broadcast News"
> */

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to