Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $file = 'C:wampwwwdisplay-pdf-file-using-phpdummy.pdf';
- $filename = 'dummy.pdf';
- header('Content-type: application/pdf');
- header('Content-Disposition: inline; filename="' . $filename . '"');
- header('Content-Transfer-Encoding: binary');
- header('Content-Length: ' . filesize($file));
- header('Accept-Ranges: bytes');
- @readfile($file);
- ?>
Add Comment
Please, Sign In to add comment