2010-04-25 66 views
0

錯誤:PHP的GD問題 - 沒有足夠的權限,使圖像?

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'images/xxx/xxx.jpg' for writing: Permission denied in /usr/www/users/xxx/resources/func.createthumbs.php on line 48 
images/xxx/xxx/xxx.jpg 
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/resources/updatethumbs.php:17) in /usr/www/users/xxx/resources/func.createthumbs.php on line 3 

所以...我如何更改的權限?這是在共享服務器上運行的 - 有可能嗎?

回答

1

查看圖片'chmod並將其設置爲644 - 通過FTP客戶端或shell。 如何更改權限?取決於您的FTP客戶端。

+0

仍然有問題 – aaron 2010-04-25 14:53:09

+0

644從來沒有幫助。 – 2010-04-25 15:05:37

+0

Werid - 對於閱讀文件,它應該是足夠的。嘗試將chmod更改爲666/777並告訴我結果。 – hsz 2010-04-25 16:16:43

1

使用您的FTP客戶端設置0777(或寫爲大家)的目錄images/xxx/xxx/

,它不是GD問題

相關問題