Re: Ficheros .zip al vuelo
| From: | Barra Home - Root | Date: | Wed, 05 Sep 2001 13:33:10 +0000 |
| Subject: | Re: Ficheros .zip al vuelo | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-13433@lists.php.net to get a copy of this message | ||
Creo que asi , no dara error si no ponmen el fichero para bajar.
<?
if(!isset($fichero)) {
echo "Mmmm que Archivo vas a Bajar????? $fichero";
} else {
header( "Content-type: application/fichero" );
header( "Content-Disposition: attachment; filename=$fichero" );
header( "Content-Description: PHP3 Generated Data" );
$filename = "$fichero";
readfile($filename);
}
?>