metti questo in testa allo script
Codice PHP:
ob_start(); 
http://php.net/manual/en/function.ob-start.php

cichity74