note 7323 modified in mkdir by ronabop

From: Date: Fri, 29 Sep 2000 13:33:08 +0000
Subject: note 7323 modified in mkdir by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5605@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. http://www.php.net/manual/function.mkdir.php

« previous php.notes (#5605) next »