non è che PER CASO se usate file_get_contents() al posto di implode("", file()) funziona meglio?