问题
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