Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/07/2009, 08:17
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años, 9 meses
Puntos: 1517
Respuesta: Subir y descargar documentos pdf desde el servidor phpadmin

Lee sobre header()

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');
?>