mazazino Posted July 21, 2010 Share Posted July 21, 2010 Hello all, I'm trying to build a website containing some pdf files, (maybe word documents as well), and I'm looking at a way where I could display the file in some sort of a hyperlink or image... What I want is when the user clicks on the image or hyperlinked text, the pdf file is openned inside the web page itself, not download it onto the local computer..I've seen some webpages where the file is openned inside the web page instead of the user being prompted to download the file locally. How can this be done in PHP?...is it fopen() function or is there some other way to force openning the file in the web page. I would appreciate any help you would give.. Thanks! Link to comment https://forums.phpfreaks.com/topic/208450-openning-a-pdf-file-on-the-browser/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.