Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/08/2008, 00:39
Avatar de ZiTAL
ZiTAL
 
Fecha de Ingreso: marzo-2004
Ubicación: Bermio (Bizkaia)
Mensajes: 1.545
Antigüedad: 21 años
Puntos: 62
De acuerdo Respuesta: Como descargar archivo sin permitir acceso directamente a el

un ejemplo:
Código PHP:
<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>
extraido de http://www.php.net/header
__________________
http://zital.no-ip.org
____________________

Euskerie ahuen eta bijotzan