<Li> When the program's arguments are the path names to two directories, cp copies all files in the source directory to the destination directory, creating any files or directories needed . This mode of operation requires an additional option flag, typically r, to indicate the recursive copying of directories . If the destination directory already exists, the source is copied into the destination, while a new directory is created if the destination does not exist . </Li> <P> Copying a file to another file: </P> <P> Copying file (s) to a directory </P> <P> Copying a directory to a directory (- r or - R must be used) </P>

Php copy all files from one directory to another