note 45209 added to function.copy
| From: | kadnan at yahoo dot com | Date: | Mon, 30 Aug 2004 05:30:31 +0000 |
| Subject: | note 45209 added to function.copy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-75632@lists.php.net to get a copy of this message | ||
you can also try xcopy command by using Shell to move/copy files/folders from one place to another
here is the code:
<?php
$str=exec("xcopy c:\\myfolder d:\\myfolder /e/i",$a,$a1);
?>
by executing this command,it will move folder along with all contents to destination.
-adnan
----
Manual Page -- http://www.php.net/manual/en/function.copy.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45209
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45209&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45209&report=yes
Search -- http://master.php.net/manage/user-notes.php