Salve a tutti, ho uno strano problema.
Sto generando un txt del tipo:
codice:
[...]
$TESTO.="CAMPO1 ".strtoupper($row['s_num']).'\n';
$TESTO.="CAMPO2 ".str_replace("-","",strtoupper($row['s_rilascio'])).'\n';
[...]
Problema : quando visualizzo il txt vedo i "\n" anzikè l'effettivo a capo.
Il txt lo elaboro così:
codice:
header('Pragma: private');
header('Cache-control: private, must-revalidate');
header("Content-Type: text/plain");
header("Content-Disposition: attachment; filename=file.txt");
header("Content-Transfer-Encoding: binary");
echo $TESTO;