copy - Quickest way to move whole folder's files to other folder using PHP -
in php , rename function allow moving files other folder however, efficient way move files 1 folder folder?
@rename($fail_path, $incoming_path);
not working
if have implement this, need
foreach (scandir($fail_path) $file){ rename($fail_path.$file, $incoming_path.$file); }
is consume resource / there more straight way? thanks
try shell_exec() function? using shell_exec call mv command.
Comments
Post a Comment