Salve a tutti, ho uno strano problema.
Sto generando un txt del tipo:
Problema : quando visualizzo il txt vedo i "\n" anzikè l'effettivo a capo.codice:[...] $TESTO.="CAMPO1 ".strtoupper($row['s_num']).'\n'; $TESTO.="CAMPO2 ".str_replace("-","",strtoupper($row['s_rilascio'])).'\n'; [...]
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;

Rispondi quotando
