Hataları etkinleştirmek için, kullanmanız gerekir error_reporting
before the point where those are triggered (for example, at the beginning of your PHP script):
error_reporting(E_ALL);
Ve görüntülenen hata var, sen yapılandırmak display_errors
a> gerekir:
ini_set('display_errors', 'On');
(This one should be disabled on a production server, which means you might have to enable it this way, even after having configured error_reporting
) em>
Of course, all this can be encapsulated in an if
block, to make sure only you can see the error messages -- especially if you are doing this on a live production website ; for instance :
if ($_SESSION['is_admin'])
{
error_reporting(E_ALL);
ini_set('display_errors', 'On');
}
And to get things a bit prettier, you might also want to configure html_errors
:
ini_set('html_errors', 'On');