If you have images or other files that reside externally, how do force the browser to download the link when a user click on it?
The use of \"Content-disposition: attac
I use a method similar to this for downloading mp4 files, could work for text files:
$file=fopen('http://example.com/example.txt','r'); header("Content-Type:text/plain"); header("Content-Disposition: attachment; filename="example.txt"); fpassthru($file);