php导出txt文件
来源:互联网 发布:双敏网络精灵 编辑:程序博客网 时间:2024/05/22 12:05
愿为你通往成功路上的垫脚石
php导出txt文件
<?php
//文件名称
$filename=urlencode('未提现信息表').'_'.date('Y-m-dHis');
//设置标头
Header( "Content-type: application/octet-stream ");
Header( "Accept-Ranges: bytes ");
header( "Content-Disposition: attachment; filename=".$filename.'.txt');
header( "Expires: 0 ");
header( "Cache-Control: must-revalidate, post-check=0, pre-check=0 ");
header( "Pragma: public ");
Header( "Content-type: application/octet-stream ");
Header( "Accept-Ranges: bytes ");
header( "Content-Disposition: attachment; filename=".$filename.'.txt');
header( "Expires: 0 ");
header( "Cache-Control: must-revalidate, post-check=0, pre-check=0 ");
header( "Pragma: public ");
//向txt文本中输入的内容
echo "没有数据";
echo "没有数据";
// '/t'制表符 ‘\n\r’换行符linux环境 ’\n‘windos环境
?>
?>
下载代码地址 http://download.csdn.net/detail/a51561/9810751
php导出excel文件下载地址 http://download.csdn.net/detail/a51561/9810738
1 0
- php导出txt文件
- php 导出txt文件 内容换行
- php 导入、导出txt
- excel@txt 文件导出
- 导出到 txt 文件
- JavaScript导出txt文件
- java导出Txt文件
- Java 导出txt文件
- springMVC 导出.txt文件
- Spring导出txt文件
- 页面导出txt文件
- java导出txt文件
- PHP导出一个txt文本文件
- PHP导出一个txt文本文件
- PHP导出一个txt文本文件
- PHP导出一个txt文本文件
- 数据导出到TXT文件
- 向客户端导出txt 文件
- 前端面试题——JS合集
- Retrofit的使用和源码解析
- Map按照值降序排列
- visual studio属性管理器(property manager)上各项的含义
- Android intent 有关flag标志的理解
- php导出txt文件
- JS中变量声明及作用域详解
- 相对布局设置位置
- Android打开相机
- 工具类,操作字符串、日期、图像、IO等
- HDU 1142 A Walk Through the Forest (SPFA+记忆化DFS)
- list遍历的时候,删除某个符合条件的元素
- iOS-使用Xcode自带单元测试UnitTest
- Python的浅拷贝和深拷贝