文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>php下载文件...

php下载文件...

时间:2010-08-06  来源:happy664618843

function downloadFile($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 download"; } }

相关阅读 更多 +
排行榜 更多 +
汽车停车模拟无限金币

汽车停车模拟无限金币

赛车竞速 下载
齿轮奇兵无广告版

齿轮奇兵无广告版

策略塔防 下载
休闲造车大亨无限金币版

休闲造车大亨无限金币版

模拟经营 下载