> $pdfdoc = $__BASE_PDF_BUILD_DIRECTORY.$_GET['FID']; > > $filesize = filesize($pdfdoc); > header("Pragma: "); > header("Expires: 0"); > header("Cache-Control: must-revalidate, post-check=0,pre-check=0"); > header("Content-type: application/pdf"); > header("Content-Length: ".$filesize); > header("Content-Disposition: inline; filename=FILE.pdf"); > header("Content-Transfer-Encoding: binary"); > header("Accept-Ranges: bytes"); > > readfile($pdfdoc); > exit(); > > Why isn't it working?
IE can seems to ignore these headers some times (I think it might have something to do with the .php extension). I have had success creating the file and saving it with .pdf as the extension then redirecting to that file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php