question regarding mkdir function
[email protected] ("Dang Nguyen") Mon, 12 May 2003 13:46:42 -0700
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
Hi All, I have found that the mkdir function does not recursively create directories for a given path. Rather than trying to reinvent the wheel, I thought someone might have this problem fixed already and wouldn't mind sharing their solution. For example, I want to use the command "mkdir(/Path/to/my/stuff,0755)". If "/Path/to" exists but /Path/to/my does not exist, then the path given in the command will fail unless I first create the my directory. I'd like to check that all parent directories exist and create them as needed. -- Dang Nguyen [email protected]