Created
January 21, 2019 06:54
-
-
Save azinkey/21c4c2fb5422c2e747ba3b96cc11d739 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ob_clean(); | |
header('Content-type: application/pdf'); | |
header('Content-Disposition: inline; filename="filename_here.pdf"'); | |
header('Content-Transfer-Encoding: binary'); | |
echo base64_decode($content); | |
ob_end_clean(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment