The simple example from http://www.php.net/pdf (hard-wired to paper.pdf)
just displayed the pdf data as a dump.  I can ftp the file and it's OK.  My
hard-wired version is shown below.

<?php
$len = filesize("paper.pdf");
header("Content-type: application/pdf");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=paper.pdf");
readfile("paper.pdf");
?> 

// Thanks,
// Rick

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

Reply via email to