when php scripts got error, the error usually goes to the apache error log (ubuntu setup).
how can i config the server so that the error will be directly output to the page, just like XAMPP 开发者_如何学JAVAis doing.
thanks in advance!
(the error i am referring to is php error. so that i can debug my php code easily)
display_errors = On
Put this line in your php.ini file.
If you just want to view the warnings and notices stick these two lines into the top of your php page
error_reporting(E_ALL);
ini_set('display_errors','1');
What kind of error?
Check the PHP docs on error handling http://de2.php.net/manual/en/book.errorfunc.php and setting your error reporting level http://de2.php.net/manual/en/function.error-reporting.php
精彩评论