PHP error reporting: Difference between revisions

From D3xt3r01.tk
Jump to navigationJump to search
(New page: So after wondering my ass off on how and where to change confs to make php spit out all the errors in one location only .. here's what I found ... <source lang="php"> php_flag display_err...)
 
mNo edit summary
 
Line 8: Line 8:
in a .htaccess file in that directory ...
in a .htaccess file in that directory ...
And the great news is that it actually works !
And the great news is that it actually works !
For other int values you can set at error_reporting you can go to [http://www.php.net/manual/en/errorfunc.constants.php php's errorfunc constants page].
For combining values you can just sum the values.


Original source [http://www.totalchoicehosting.com/forums/index.php?showtopic=19974 here] .
Original source [http://www.totalchoicehosting.com/forums/index.php?showtopic=19974 here] .
[[Category:PHP]]
[[Category:PHP]]

Latest revision as of 03:39, 3 December 2009

So after wondering my ass off on how and where to change confs to make php spit out all the errors in one location only .. here's what I found ...

php_flag display_errors on
php_value error_reporting 7

in a .htaccess file in that directory ... And the great news is that it actually works !

For other int values you can set at error_reporting you can go to php's errorfunc constants page. For combining values you can just sum the values.

Original source here .