Answers for "php move directory with files"

PHP
3

php move file

//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
Posted by: Guest on July-15-2020
0

take files from one folder and move to another folder in php

$source_file = 'foo/image.jpg';
$destination_path = 'bar/';
rename($source_file, $destination_path . pathinfo($source_file, PATHINFO_BASENAME));
Posted by: Guest on October-22-2021

Code answers related to "php move directory with files"

Browse Popular Code Answers by Language