If you are using Unix simply call out the shell using back ticks `mv xxx xxx` or check out.
http://www.php.net/manual/en/function.exec.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -----Original Message----- > From: Alex Ciurea [mailto:[EMAIL PROTECTED]] > Sent: Monday, 13 January 2003 7:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Can I Copy a directory using PHP? > > > 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 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php