我的代碼一直說這個文件夾不存在,雖然它應該由mkdir函數檢查..它創建文件夾,但不經過上傳過程..和在無法找到文件夾上顯示錯誤..算法是否正確?請幫助..您的建議將有所幫助! :)文件系統路徑創建錯誤(文件上傳)
這裏是代碼..
if(!(file_exists($target_path)))
{
if(!mkdir($target_path, 0777, TRUE))
{
die ("could not create the folder on mkdir");
}
//in this line the error occurs..printing what is below..//
die ("could not find folder on file exists");
}
else
{
umask($target_path);
...
}
您能引用確切的錯誤消息以及它們出現在哪些行上嗎? – 2012-01-08 13:15:51
@Pekka我已經.. ..請看看..謝謝..:D – SimonCode 2012-01-08 13:18:53
感謝編輯@hakre hehe ..:D不知道怎麼說.. – SimonCode 2012-01-08 13:22:53