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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -