Re: Question about error_reporting()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 01 Oct 2004 12:13:18 -0400, Al <news@xxxxxxxxxxxxx> 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/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux