On May 30, 2011, at 10:01 AM, Jim Giner wrote:
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");
?>
I may not be fully understanding this, but if you set a Location:
header, the other headers you've set don't matter at all, since the
client will merely redirect to the page specified by the Location:
header.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php