我的代码一直说这个文件夹不存在,虽然它应该由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