Possible Duplicate:Check if directory exists (PHP)
Post deleted - Post deleted - Post deleted - Post deleted
Use file_exists function to check if the folder or tree exists, then use PHP mkdir function.
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 the folder if you need to.