note 16282 deleted from function.mkdir by jimw

From: Date: Wed, 24 Oct 2001 00:27:55 +0000
Subject: note 16282 deleted from function.mkdir by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-19353@lists.php.net to get a copy of this message
I created several directories with using MKDIR on Sun Solaris. Here is the source: <? $uploadDir1 = "./data/"; $stmt = "select count(*) from CA_ACCEPT"; $count_stmt=OCIParse($conn,$stmt); OCIExecute($count_stmt); OCIFetchInto($count_stmt,&$row); $total_count = $row[0]; $total_attach ="/"; $total_count1 = $total_count.$total_attach; $uploadDir = $uploadDir1.$total_count1; echo("$uploadDir"); mkdir("$uploadDir",0777); ?> Whenever a user attaches a file, The above source will create automatically directory with the sequence number. Hope that the source is pretty useful

« previous php.notes (#19353) next »