<?php
$fp = fopen("http://test.cn/cc.pdf", "r");
header("Content-type: application/pdf"); fpassthru($fp); fclose($fp);亲测有效,代码直接粘来用就行了
本文共 184 字,大约阅读时间需要 1 分钟。
<?php
$fp = fopen("http://test.cn/cc.pdf", "r");
header("Content-type: application/pdf"); fpassthru($fp); fclose($fp);亲测有效,代码直接粘来用就行了
转载于:https://www.cnblogs.com/shenmu/p/9930376.html