我想要在用户使用PHP访问网页时下载文件.我认为它与某些事情有关file_get_contents,但我不确定如何执行它.
file_get_contents
$url = "http://example.com/go.exe";
下载文件后,header(location)它不会重定向到另一个页面.它就停止了.
header(location)
php file download
download ×1
file ×1
php ×1