when moving one file from one location to another i use
rename(\'path/filename\', \'newpath/filename\');
how do you move all files in a fol
If the target directory doesn't exist, you'll need to create it first:
mkdir('newpath'); rename('path/*', 'newpath/');