Re: How to copy files from one directory to another directory through php on linux platform??
| From: | Alexander Wagner | Date: | Fri, 10 Aug 2001 03:07:00 +0000 |
| Subject: | Re: How to copy files from one directory to another directory through php on linux platform?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62101@lists.php.net to get a copy of this message | ||
Balaji Ankem wrote:
> Hi! dearest friends,
> How to copy files from one directory to another directory through
> php on linux platform??
- Be sure you have permission to read the files to be copied and to
write into the destination-directory.
This is rather UNIX-specific than related to PHP.
- Use copy() to copy the files.
http://www.php.net/copy
- If you need to copy a complete directory without knowing the names of
the files inside, use opendir() and readdir() to get those filenames.
http://www.php.net/opendir
http://www.php.net/readdir
regards
Wagner
--
Madness takes its toll. Please have exact change.