1. 程式人生 > >php 線上讀取PDF檔案

php 線上讀取PDF檔案

<meta charset="utf-8">
<?php 
$fp = fopen("http://www.81.com/upload/file/1512243302.pdf", "r");
header("Content-type: application/pdf");
fpassthru($fp);
fclose($fp);
?>