当前位置:Gxlcms > PHP教程 > php文件输出

php文件输出

时间:2021-07-01 10:21:17 帮助过:53人阅读

Header("Content-type: application/octet-stream");Header("Content-Disposition: attachment; filename=log.txt");$filename = '/proj/logs/log.txt';$handle = fopen($filename, "r");$contents = fread($handle, filesize($filename));fclose($handle);echo $contents;die;

人气教程排行