更新时间:2023-12-04 20:44:40
要强制下载服务器上的所有 CSV 文件,请添加您的 .htaccess 文件:
To brute force all CSV files on your server to download, add in your .htaccess file:
AddType application/octet-stream csv
header('Content-Type: application/csv');
header('Content-Disposition: attachment; filename=example.csv');
header('Pragma: no-cache');
readfile("/path/to/yourfile.csv");