Re: Envio de un fichero del servidor al cliente
| From: | Jesus Castagnetto | Date: | Fri, 08 Sep 2000 16:28:19 +0000 |
| Subject: | Re: Envio de un fichero del servidor al cliente | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-1515@lists.php.net to get a copy of this message | ||
Envia:
Header("Content-type: application/octet-stream");
Header("Content-Disposition: attachement; filename=".$filename);
readfile($filename);
Eso es todo.
--- Jesus M. Castagnetto
Quoting Jordi Marquès Perarnau <trespi@interwatts.com>:
> hola a todos,
>
> Necessito que cuando el cliente apriete encima de alguna referencia
en una
> página web el servidor le envie un fichero o le salga el tipico
mensaje de
> abrir-lo o guardar en disco que sale en qualquier link para dowload.
> Alguien sabe algun comando que haga esto? o algun sistema si es que
se
> tiene
> que utilizar ftp?
> Gracias.
>
>
>
>
>
>
>
---------------------------------------------------------------------
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>
>
-------------------------------------------------
Created by Zkey.com - http://www.zkey.com
Awarded PCMagazine's Editors' Choice