note 14028 deleted from function.mkdir by aidan

From: Date: Sun, 03 Oct 2004 13:41:08 +0000
Subject: note 14028 deleted from function.mkdir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77851@lists.php.net to get a copy of this message
Note Submitter: tac at smokescreen dot org ---- To check if the directory exists before calling mkdir(), use files_exists, e.g. if (!file_exists($path)) { mkdir($path, 0777); } $dir = dir($path);

« previous php.notes (#77851) next »