浏览器地址输入:
chrome://flags/
然后搜索:
Omnibox Updated connection security indicators
然后 这个选择disabled 重启浏览器就好了
]]><?php
/**
*@param $file - path to file
*/
function force_download($file) {
if ((isset($file)) && (file_exists($file))) {
header("Content-length: " . filesize($file));
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $file . '"');
readfile("$file");
} else {
echo "No file selected";
}
}
?>
]]>