Inserisci all'inizio del tuo script il seguente codice:

Codice PHP:
error_reporting(E_ALL);
ini_set('display_errors'1);