/ Published in: PHP
This function will force a file to be downloaded. It accepts $_path as a parameter.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function file_force_dl($_path) { $mime = 'application/force-download'; }