1)controlla che il file nn sia vuoto
2)se contiene tag htm usa htmlspecialchars
Codice PHP:
htmlentities(fread($handlefilesize($filename)))