Re: Re: Error Reporting
| From: | Philip Olson | Date: | Mon, 28 Jun 2004 14:31:57 +0000 |
| Subject: | Re: Re: Error Reporting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189162@lists.php.net to get a copy of this message | ||
On Mon, 28 Jun 2004, Daniel Kullik wrote:
> Tom Chubb wrote:
> > I ave a strange problem with my error reporting!
> > I have set php.ini to: error_reporting = E_ALL but I don't see any errors.
> > (After I was happy things were working on my Apache Test Server, I uploaded
> > to my web host and discovered errors.)
> > Thanks,
> >
> > Tom
>
> Make sure that "display_errors" in your php.ini is set to "On".
> You might also use ini_set() to set it to "On" at the beginning of each
> of your scripts. Some prepend-file is suggested.
>
>
> Note (php.ini):
>
> "For production web sites, you're strongly encouraged to turn this
> feature off, and use error logging instead (see below). Keeping
> display_errors enabled on a production web site may reveal security
> information to end users, such as file paths on your Web server, your
> database schema or other information."
Also note that turning it on at runtime (ini_set) won't
work if a parse error exists as the code want execute so
the errors won't "be displayed"
Regards,
Philip