Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/12/2009, 04:46
Avatar de McBlink
McBlink
 
Fecha de Ingreso: noviembre-2006
Ubicación: $ARG->LaPampa()
Mensajes: 1.694
Antigüedad: 18 años, 4 meses
Puntos: 23
Respuesta: Descargar múltiples archivos a partir de un solo php

Ante todo bienvenido al foro liepzingsystem,
cuál es el problema que tenes?

links.php
Código PHP:
<a href="my_php.php?f=imagen.jpg">bajar imagen.jpg</a>
<
a href="my_php.php?f=logo.png">bajar logo.png</a>
<
a href="my_php.php?f=flash.swf">bajar flash.swf</a
-----------------------------------------

my_php.php
Código PHP:
   $f $_GET["f"];
    
header("Content-type: application/octet-stream");
    
header("Content-Disposition: attachment; filename=\"$f\"\n");
    
$fp=fopen("$f""r");
    
fpassthru($fp); 
tendría que funcionarte, cualquier problema me comentas,

Saludos.