All posts tagged errors

article_php

Show Errors in PHP

In the good “old” days when 99% of all websites looked horrible, PHP would by default spit out all errors. If you made a mistake in your code, you’d get gracefully “notified”.

With PHP 5 we arrived to a new era of hidden rebukes – page just loads totally blank by default.

If you like games, you can just start searching the problem from your source code! If you have less than 100k lines you’ve got a good chance to find the issue before dawn.

If not, just drop these lines to the beginning of the script – should be fine…

ini_set('display_errors', '1');
error_reporting(E_ALL);
Back to Top