PHP uploading script - create folder automatically [duplicate]

孤街浪徒 提交于 2019-12-04 07:12:54

问题


Possible Duplicate:
Check if directory exists (PHP)

Post deleted - Post deleted - Post deleted - Post deleted


回答1:


Use file_exists function to check if the folder or tree exists, then use PHP mkdir function.




回答2:


The is_dir function checks if a folder exists and mkdir will create the folder if you need to.




回答3:


Check if there is a directory.

If not, create one.

Where is the problem?



来源:https://stackoverflow.com/questions/11454053/php-uploading-script-create-folder-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!