[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    [PHP] Re: displaying a pdf
From:       74.70.148.153
Date:       2011-05-29 21:24:02
Message-ID: 60.E3.01112.C59B2ED4 () pb1 ! pair ! com
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic