How to move a file from one directory to another using PHP
Learn how to move a file from a folder to another using a PHP script.
$file1 = './folder/filename.pdf'; $file2 = './folder/subfolder/filename.pdf'; rename($file1, $file2);