文件下载
来源:互联网 发布:会话php 编辑:程序博客网 时间:2024/05/21 17:26
<?php
$file="D:/AppServ/www/a.txt";
if(is_file($file)) {
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($file));
readfile($file);
exit;
}else{
echo "文件不存在!";
exit;
}
?>
$file="D:/AppServ/www/a.txt";
if(is_file($file)) {
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($file));
readfile($file);
exit;
}else{
echo "文件不存在!";
exit;
}
?>
0 0
- 下载图片,下载文件
- 文件下载
- 文件下载
- 文件下载
- 文件下载
- 文件下载
- 文件下载
- 下载文件
- 文件下载
- 下载文件
- 文件下载
- 文件下载
- 下载文件
- 文件下载
- 下载文件
- 下载文件
- 文件下载
- 下载文件
- Access restriction: The type BASE64Encoder is not accessible due to restrict
- 高斯日记
- android:configChanges
- Maven 设置编译 jdk 版本 1.7
- AD属性对照表 LDAP以及简单示例
- 文件下载
- 项目总结-简单需细致的东西
- html5 可以讓使用者輸入url網址 ,去play影片
- 传统机械硬盘和固态硬盘(SSD)的区别
- Linux shell应用1-自动配置网络
- 酷炫的微信二维码
- java.util.zip.ZipException: invalid entry size (expected 4612 but got 241469 bytes)
- SWFUpload简单使用例子 Java版(JSP)
- TextView——setCompoundDrawables用法