question regarding mkdir function

From: Date: Mon, 12 May 2003 20:46:42 +0000
Subject: question regarding mkdir function
Groups: php.lang 
Request: Send a blank email to php-lang+get-489@lists.php.net to get a copy of this message
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 dang@dangnguyen.net

« previous php.lang (#489) next »