+
95
-

php如何让浏览器下载一个文本文件?

php

请问php如何让浏览器下载一个文本文件?

网友回复

+
15
-
<?php
$content = "文本内容";//文件内容
header("Content-type: application/octet-stream"); 
header("Accept-Ranges: bytes"); 
header("Content-Di...

点击查看剩余70%

我知道答案,我要回答