Re: copying a directory
| From: | Burhan Khalid | Date: | Mon, 27 Oct 2003 04:49:22 +0000 |
| Subject: | Re: copying a directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167675@lists.php.net to get a copy of this message | ||
Shawn McKenzie wrote:
I need to copy a directory from one location to the other. I didn't find a function for this. Is copy() supposed to work on directories as well as files, or is there another?Unix : cp -r /old/dir /new/dir Windows : xcopy /E c:\old\dir c:\new\dir Use those with : http://www.php.net/manual/en/function.exec.php -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com