Tu n'as aucun affichage HTML avant ce code ?

Rajoute un error_reporting(E_ALL) tout en haut du script.