|
Posted by J.O. Aho on 03/19/06 20:17
cricketunes@yahoo.com wrote:
> Hi all,
> I am running PHP over Linux. When there is a bug in the code, there is
> nothing output to the screen. Debugging the reason is like the
> proverbial needle in a haystack situation.
By default PHP don't show errors nowadays on the HTML-output.
> Is there a command for seeing the compilation errors?
Look in your php.ini and you can turn on the HTML-output or store the errors
to a logfile. You can decide how much errors should be shown too (log level)
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
error_log = syslog
Those settings would log everything in your syslog (most distros uses
/var/log/messages) and types out everything to the HTML-output, the
HTML-output can lead to all to much output, so it can be wiser to turn it off
(display_errors = Off).
//Aho
Navigation:
[Reply to this message]
|