RE: [PHP] Can I Copy a directory using PHP?
| From: | Timothy Hitchens \(HiTCHO\) | Date: | Mon, 13 Jan 2003 09:57:52 +0000 |
| Subject: | RE: [PHP] Can I Copy a directory using PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131410@lists.php.net to get a copy of this message | ||
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: tim@hitcho.com.au
> -----Original Message-----
> From: Alex Ciurea [mailto:alex@netonwave.com]
> Sent: Monday, 13 January 2003 7:53 PM
> To: php-general@lists.php.net
> 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
>