codice:
error_reporting(E_ALL);
ini_set('display_errors', '1');
echo ini_get('display_errors');
funziona di certo.