If you want to serve up text files for download (perhaps product feeds etc) then you might like this little snippet. Not only will it force the file to be downloaded but it allows you to specify a custom filename that it should be saved as. PLAIN TEXT PHP: if(isset($_GET['download_file'])){ header("Content-type: application/octet-stream"); [...]
Archive: force
Posts Tagged ‘force’
January 23, 2012
No Comments
Categories:
Archive by date: