public function pdf(){
$filename = 'http://101.201.196.201/2.pdf';
//文件的类型
header('Content-type: application/pdf');
//下载显示的名字
header('Content-Disposition: attachment; filename="1.pdf"');
readfile("$filename");
exit();
}
下载阅读pdf文档
猜你喜欢
转载自blog.csdn.net/haoyunyun888/article/details/54176936
今日推荐
周排行