Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/05/2009, 14:40
Avatar de Superlinux
Superlinux
 
Fecha de Ingreso: octubre-2005
Ubicación: Colombia
Mensajes: 662
Antigüedad: 18 años, 6 meses
Puntos: 1
Respuesta: descarga de archivo ..

no ... el mismo problemita ..

Código PHP:
<?php
if($_GET['idesp'] == TRUE){
    
$enlace $path."../ventas/simulador/".$idesp;
    
header ("Content-Disposition: attachment; filename=\"$idesp\"");
    
header ("Content-Type: application/octet-stream");
    
header ("Content-Length: ".filesize($enlace));
    
readfile($enlace);
}
//fIN DEL IF

if($_GET['idcli'] == TRUE){
    
$enlace $path."../ventas/simulador/".$idcli;
    
header ("Content-Disposition: attachment; filename=\"$idcli\"");
    
header ("Content-Type: application/octet-stream");
    
header ("Content-Length: ".filesize($enlace));
    
readfile($enlace);
}
//fIN DEL IF

if($_GET['idhot'] == TRUE){
    
$enlace $path."../ventas/simulador/".$idhot;
    
header ("Content-Disposition: attachment; filename=\"$idhot\"");
    
header ("Content-Type: application/octet-stream");
    
header ("Content-Length: ".filesize($enlace));
    
readfile($enlace);
}
//fIN DEL IF
?>
__________________
"La vida sigue su curso, tú toma parte de ella."