note 7323 deleted from function.mkdir by aidan
| From: | aidan@php.net | Date: | Sun, 03 Oct 2004 13:41:43 +0000 |
| Subject: | note 7323 deleted from function.mkdir by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-77854@lists.php.net to get a copy of this message | ||
Note Submitter: mbsrkch at soback dot kornet21 dot net
----
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.