note 31739 rejected from function.mkdir by tomsommer

From: Date: Sat, 10 Jan 2004 21:09:02 +0000
Subject: note 31739 rejected from function.mkdir by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-63295@lists.php.net to get a copy of this message
Note Submitter: spoonschlab@yahoo.com ---- can anyone explain how this method works? function mkdirs($path) { if (strlen($path) == 0) { return 0; } if (strlen($path) < 3) { return 1; } elseif (is_dir($path)) { return 1; } elseif (dirname($path) == $path) { return 1; } return (mkdirs(dirname($path)) and mkdir($path)); }

« previous php.notes (#63295) next »