
06/02/2012, 21:28
|
| | Fecha de Ingreso: septiembre-2010
Mensajes: 1.853
Antigüedad: 14 años, 5 meses Puntos: 6 | |
Respuesta: Generar archivo txt a partir de pagina php gracias por responder Minniek
como implemento lo que me enviaste
este codigo en que parte la implemento?
$filecontent="Aqui va el mensaje de texto ... ";
$downloadfile="nombre.txt";
header("Content-disposition: attachment; filename=$downloadfile");
header("Content-Type: application/force-download");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".strlen($filecontent));
header("Pragma: no-cache");
header("Expires: 0"); |