<?php
$fp = fopen("http://test.cn/cc.pdf", "r");
header("Content-type: application/pdf");
fpassthru($fp);
fclose($fp);
亲测有效,代码直接粘来用就行了
<?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