
11/01/2002, 17:09
|
 | Colaborador | | Fecha de Ingreso: junio-2001 Ubicación: España
Mensajes: 1.430
Antigüedad: 23 años, 9 meses Puntos: 0 | |
Re: Download de archivo a pedido Uhm...,mira como lo hago yo ( técnica aprendida del maestro Herminio )
<pre><?php
$contenido = "Hola a todo el mundo";
Header("Content-Type: text/txt");
Header("Content-Disposition: attachment;filename=fichero.txt");
Header("Content-Length:".strlen($contenido));
echo $contenido;
?>
</pre> Está probado con Opera,Netscape,IE,Konqueror,Galeon,Nautilus y Lynx entre otros ;)
Salu2 - Fernando Pereda ( Ferdy )
<center><a href="http://www.ferdyx.org/firmas.php"><img src="http://www.ferdyx.org/reg_tira.jpg" border="0"></a></center> |