Re: displaying a pdf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the attempt Simon, but your code only displayed gibberish.
While looking around again for help, I found this and it works perfectly:

<?php
session_start();
//
//  Specify the name of the pdf here and the folder
//
$pdfname='VFD_ByLaws.pdf';
$path='/pdfs/';
//
//  the rest will handle the displaying
//
header("Cache-Control: no-cache");
header("Content-type: application/pdf");
header("Location:$path$pdfname");
?>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux