I have already done my home work on this, but can't seem to find a solution that works. I am not sure if it is path related or command related. Here is what I have tried so far:
$sourcePath = "/home/user1/public_html/unzipped/*.jpg";
$destinationPath = "/home/digitech/public_html/photos/";
copy ($sourcePath, $destinationPath);
This seems to only work if I put the full path of a SINGLE file and the destination path with a file name as well. I need to copy or move the entire folder.
I have also tried:
exec('copy /home/user1/public_html/unzipped/*.jpg
/home/digitech/public_html/photos/');
This command works at the linux shell, but not from here. I know the exec() function is working because I can execute other commands such as 'ls'.
Thanks in advance for your help!