15,067
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
檔案操作有關 | 檔案操作有關 | ||
* 可否讀取或寫入:例如 imagejpeg($canvas, $filename, 100); 沒有顯示錯誤訊息,則需要 | * 可否讀取或寫入:例如 imagejpeg($canvas, $filename, 100); 沒有顯示錯誤訊息,則需要 | ||
** 檢查暫存目錄是否可以寫入 [http://stackoverflow.com/questions/1520956/php-way-to-find-the-web-servers-temp-path upload - PHP way to find the web server's temp path? - Stack Overflow] | |||
** 檢查該檔案所在該目錄是否已經建立,若未建立則需要建立 [http://php.net/manual/en/function.mkdir.php mkdir],並設定可以寫入。如果是巢狀的多層目錄,則需要啟用 $recursive | |||
** 檢查該檔案是否可以寫入 [http://php.net/manual/en/function.is-writable.php is_writable] | ** 檢查該檔案是否可以寫入 [http://php.net/manual/en/function.is-writable.php is_writable] | ||
使用者輸入內容,內容可能是 | 使用者輸入內容,內容可能是 | ||