Re: Question about error_reporting()
| From: | Greg Donald | Date: | Fri, 01 Oct 2004 16:34:55 +0000 |
| Subject: | Re: Question about error_reporting() | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198442@lists.php.net to get a copy of this message | ||
On Fri, 01 Oct 2004 12:13:18 -0400, Al <news@ridersite.org> wrote:
> What's puzzling is that I can simply comment out the error_reporting line and
> the code runs fine.
>
> Also, the Apache error log doesn't show any errors. with or without the
> error_reporting.
Make sure you have
log_errors = On
in your php.ini.
> Is error_reporting() all that is necessary, or must I also have a error_log()
> statement?
To see the errors on screen you need
display_errors = On
> The manual is not clear on this point.
>
> Also, must I have a an existing error file for the errors to append to?
No, the web server error log is where they shoudl appear.
--
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/