Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/05/2006, 04:25
Koden
 
Fecha de Ingreso: marzo-2005
Mensajes: 197
Antigüedad: 19 años, 2 meses
Puntos: 1
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.