Ver Mensaje Individual
  #9 (permalink)  
Antiguo 29/08/2011, 17:25
markos9
 
Fecha de Ingreso: agosto-2011
Ubicación: Aviles-Asturias
Mensajes: 6
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Problemas al descargar un fichero de mi Base de datos mysql

Te lo adjunto GatorV

descarga.php:
<?php
$id=$_GET['id'];
$enlace = "images/".$id;
header ("Content-Disposition: attachment; filename=".$id);
header ("Content-Type: application/octet-stream");
header ("Content-Length: ".filesize($enlace));
readfile($enlace);
?>

Muchas gracias por tu atencion.