php导出内容到txt并自动弹出下载文件 2017/12/13 编程 0阅读 最近有个项目需要用到,mark一下 1234567891011121314<?php/** * Created by aaali. * Date: 2017/12/13 * Time: 14:46 */$id=array('网址:xxx.com','用户名:xxx','密码:xxx',);header("Content-type:application/octet-stream");header("Accept-Ranges:bytes");header("Content-Disposition:attachment;filename=".'测试文件.txt');header("Expires: 0");header("Cache-Control:must-revalidate,post-check=0,pre-check=0");header("Pragma:public");echo implode("\n",$id);