You are on page 1of 1

<?php // Vamos a mostrar un PDF header('Content-type: application/pdf'); // Se llamar downloaded.pdf header('Content-Disposition: attachment; filename="downloaded.pdf"'); // La fuente de PDF se encuentra en original.

pdf readfile('original.pdf'); ?> desactivacion del cach <?php header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Fecha en el pasado ?> tabla <?php header("Pragma: public"); header("Expires: 0"); $filename = "nombreArchivoQueDescarga.xls"; header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=$filename"); header("Pragma: no-cache"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); echo "<table><tr><th><h2>Listado en tabla excel</h2></th></tr>"; ?>

You might also like