PHP code in viewing a pdf file from a mysql database -


how view .pdf file in webpage using php? pdf file in mysql database. thanks.

if echo contents database browser , provide appropriate content type through http headers you're done!

<?php  header('content-type: application/pdf'); echo $pdf_from_database; 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -