Ver Mensaje Individual
  #4 (permalink)  
Antiguo 08/03/2006, 13:20
Avatar de DanielLucia
DanielLucia
 
Fecha de Ingreso: noviembre-2005
Ubicación: Cádiz (España)
Mensajes: 170
Antigüedad: 18 años, 5 meses
Puntos: 0
es estp??
esto es el contenido de por ejemplo down.php:
Código PHP:
<?php
$enlace 
$path_a_tu_doc."/".$id;
header ("Content-Disposition: attachment; filename=".$id."nn");
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);
?>
y para llamar al archivo q kieres bajar se ace de esta manera...
Código HTML:
down.php?id=imagen.jpg
espero q te sirva
__________________
Antenista San Fernando