Jump to content

"Download" file, not view it in browser.


walnoot

Recommended Posts

Hi,

 

Is there a way to set that the file should be download directly either than viewed in the browser?

I would like to use this for images and txt files.

 

I really don't know if this is possible in php (When googling i came apon this: header('Pragma: no-cache'); , but i don't know how to use it.... and it might not be that).

 

Thx!

Link to comment
https://forums.phpfreaks.com/topic/90736-download-file-not-view-it-in-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.