Re: displaying a pdf

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

 



Update.

I re-arranged my code and now I get a popup saying "File does not begin with 
'%PDF-'.

Here's the code as it is now.

<?php
session_start();
header("Cache-Control: no-cache");
header("Content-type: application/pdf");
$root = $_SERVER['DOCUMENT_ROOT'];
$pdfname=$root.'/pdfs/myfile.pdf';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>|</title>
</head>
<body bgcolor="#c0c0c0">
</body>
</html> 



-- 
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