我無法使用unlink()
刪除文件,當我使用fopen
和"w"
標記時,出現錯誤。該文件具有777
chmod。我可以使用fopen()
在文件末尾寫入。但我不能刪除任何東西。 有人可以幫我嗎?無法刪除PHP中的文件
這裏有一個例子:
echo substr(sprintf('%o', fileperms('..')), -4); //777
echo substr(sprintf('%o', fileperms('.')), -4); //777
echo substr(sprintf('%o', fileperms('test')), -4); //777
chmod('tmp',0777); //Permission denied
什麼錯誤?.... – 2012-04-19 15:18:12
權限被拒絕。 – user1319182 2012-04-19 15:23:40
顯示您的代碼。 – Blake 2012-04-19 15:26:55