3 ms·
"You should never have error reporting turned of" Sorry bro, if you have ever put code on production with error reporting on...you are doing it wrong.
by taytus 15y ago
"You should never have error reporting turned of"
Sorry bro, if you have ever put code on production with error reporting on...you are doing it wrong.
- maratd 15y agoI have and since I write the code, I expect zero errors. And that's what I get. When there are errors, that code needs to be fixed. Tell me more, bro.
- karolist 15y agoHe specifically mentioned you should have errors logged instead, not displayed to the client. You're quoting only the part that leads to your insult.
- corford 15y agoAre you insane? In production, you should have error_reporting set to something like: E_ALL & ~E_DEPRECATED And then: display_errors = Off display_startup_errors = Off track_errors = Off html_errors = Off ignore_repeated_errors = Off ignore_repeated_source = Off log_errors = On error_log = /path/to/log/file (or syslog)