≡ Menu

php display errors

PHP Log All Errors to a Log File to Get Detailed Information

PHP offers simple but effective solution to log all errors to a log fiie.
On all production web server you must turn off displaying error to end users via a web browser. Remember PHP gives out lots of information about path, database schema and all other sort of sensitive information. You are strongly advised to use error logging in place of error displaying on production web sites. The idea is quite simple only developer should able to see php error log.
[click to continue…]

Sysadmin because even developers need heroes!!!