[Php-it] Download file di testo: firefox su winXP
cambia l'estensione
Matteo Beccati
php at beccati.com
Mon Feb 26 11:20:24 CET 2007
Cesare D'Amico ha scritto:
> Hola, il problema è riassunto nell'oggetto: firefox 2.0.0.2 su winXP
> aggiunge ".txt" al nome del file ".sct" che cerco di fargli salvare
> automaticamente; ecco il pezzo di codice:
>
> $url = "scontrino_".basename($_GET['sct'])."_".date('Ymd_His').".sct";
> header('Content-Description: File Transfer');
> header('Content-Type: text/plain');
Il content-type deve essere per forza text/plain?
Ciao ciao
--
Matteo Beccati
http://phpadsnew.com
http://phppgads.com
More information about the Php-it
mailing list