Cita:
Iniciado por Koden Código PHP:
<?php
if (isset ($_GET['archivo'] && !is_null ($_GET["archivo"]))
{
header ("Content-Transfer-Encoding: binary");
header ("Content-type: application/force-download");
header ("Content-Disposition: attachment; filename=" . basename ($_GET["archivo"]));
header ("Content-Length: " . filesize ($_GET["archivo"]));
readfile ($_GET["archivo"]);
}
else
header ("Location: index.php");
?>
Al final reparé yo sólo en el error, y es que me faltaba cerrar el paréntesis del isset...
De todos modos, muchas gracias por tu ayuda, Nefertiter.
Un saludo.