note 16282 added to function.mkdir
| From: | chilhoank at yahoo dot ca | Date: | Tue, 23 Oct 2001 16:09:21 +0000 |
| Subject: | note 16282 added to function.mkdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19330@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/en/function.mkdir.php
http://master.php.net/manage/user-notes.php?action=edit+16282
http://master.php.net/manage/user-notes.php?action=delete+16282
http://master.php.net/manage/user-notes.php?action=reject+16282