Hello,
I am trying to copy multiple files with this code I found at php.net
<?php
$file = 'example.txt';
$newfile = 'example.txt.bak';
if (!copy($file, $newfile)) {
echo "failed to copy $file...\n";
}
?>
but when I try to copy multiple files, it only copies the last file in the list.
What can I do? I have read about creating your own functions, but I don't really understand the 2 examples I can find.
Anyone with the time to explain that would be willing would be appreciated.
Thanks,
Johnie Karr