php://output open_basedir error

如果使用 php://output 作為輸出時遇到以下錯誤:

open_basedir restriction in effect. File(php://output) is not within the allowed path(s)

將系統暫存目錄 (參閱系統變數) 納入 open_basedir 設定中即可,不是將 php://output 放入喔...

2012/12/27 Update :
如果路徑是 C:\Windows\TEMP,請記得給 IIS_IUSRS 對應的權限(但會衍生安全性風險),也可考慮更改系統變數 TEMP, TMP 去別的位置。

分類: Web technology,標籤: 。這篇內容的永久連結