
04/02/2016, 14:52
|
 | | | Fecha de Ingreso: diciembre-2015 Ubicación: medellin
Mensajes: 95
Antigüedad: 9 años, 1 mes Puntos: 1 | |
Respuesta: Como visualizar pdf desde un link hecho en php Perdon jajaja mande el antiguo jiji
este es
<?php
$file = '../pdf';
$filename = 'certificadodeAfiliado.pdf'; /* Note: Always use .pdf at the end. */
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');
readfile($file);
?> |