Can I Copy a directory using PHP?
| From: | Alex Ciurea | Date: | Mon, 13 Jan 2003 09:53:12 +0000 |
| Subject: | Can I Copy a directory using PHP? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-131408@lists.php.net to get a copy of this message | ||
Hello,
I want to write a script that makes a backup of a database directory.
Actually, to copy all database files to another directory.
I've figured that I have to use the "copy" function of the PHP, but the
function doesn't works only with files?
Is it possible to copy the entire directory to another location, using PHP?
I presume that is more "resource-friendly" than to copy the directory
file-by-file.
Thanks and best regards,
Alexoiul