Reply to Re: How to view compilation errors in PHP/Linux box

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация