Jump to content

Openning a pdf file on the browser


mazazino

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.