$value){ $GLOBALS[$matrix] = $value; } foreach($_GET as $matrix => $value){ $GLOBALS[$matrix] = $value; } foreach($_COOKIE as $matrix => $value){ $GLOBALS[$matrix] = $value; } } register_globals(); if (file_exists($fichero)) { $archivo = basename($fichero); $bytes = filesize($fichero); $fh = fopen($fichero, "r"); header("Content-Type: application/x-ms-download"); header("Content-Length: ".$bytes); header("Content-Disposition: attachment; filename=\"".$archivo."\""); header("Content-Transfer-Encoding: binary"); fpassthru($fh); exit; } else die("Fichero no disponible"); ?>