![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
23/09/2003, 06:21
|
| | Fecha de Ingreso: julio-2003
Mensajes: 132
Antigüedad: 21 años, 6 meses Puntos: 0 | |
una facilita necesito hacer que se baje un fichero de texto al cliente sin abrirse en el navegador web. Uso las siguientes cabeceras
$nom_fich="auditoria.txt";
header("Content-Disposition: attachment; filename=$nom_fich");
header("Content-length: ", filesize($nom_fich));
header("Content-Type: application/octet-stream; name=$nom_fich");
esta en el mismo directorio, pero me baja vacio, aun cuando el fichero esta ok
¿Alguien me puede ayudar?
gracias de antemano |