![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/09/2008, 11:21
|
| | Fecha de Ingreso: julio-2008
Mensajes: 3
Antigüedad: 16 años, 7 meses Puntos: 0 | |
Respuesta: exportar a archivo.txt desde php pues amigo creo que te falta hacer un echo, a mi me funciono de esta manera...
$downloadfile="Reporte_Auditoria.txt";
header ("Content-Disposition: attachment; filename=\"exportar.txt\"" );
header("Content-Type: application/force-download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".strlen($filecontent));
header("Pragma: no-cache");
header("Expires: 0");
echo $filecontent; |