I finally got the fopen and fpassthru thing figured out (I wanted to access PDF files that are stored outside of the root directory for security reasons..._, but it loads the whole document before displaying...here is the script...
<? header("Content-type: application/pdf");
require ("http://www.themoplady.com/config.inc"); require ("http://www.themoplady.com/header.inc"); require ("http://www.themoplady.com/chklogin.inc"); require ("http://www.themoplady.com/ckpurchase_1009-1.inc"); require ("http://www.themoplady.com/access1.inc");
$fp = fopen("/opt2/home4/themoplady/PDF/thewindblew_ebook.pdf","r");
if ($fp)
{ fpassthru ($fp); }
else
{ print"The file does not exist"; }
?>
Is there a way to start loading the Adobe reader before the entire pdf is downloaded? This way waits to download the whole file then initiates and loads Adobe...it just takes too long...
Thanks,
Ryan