文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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"; } }

相关阅读 更多 +
排行榜 更多 +
宝宝欢乐农场

宝宝欢乐农场

休闲益智 下载
我的世界外进神器

我的世界外进神器

游戏工具 下载
飞虎队模拟器2

飞虎队模拟器2

飞行射击 下载