Possible duplicate:Check if directory exists (PHP)
Message deleted - message deleted - message deleted - message deleted
Use file_exists to check if a folder or tree exists, then use PHP mkdir .
Check if there is a directory .
If not, create one .
Where is the problem?
The is_dir function checks if a folder exists and mkdir will create a folder if you need to.