Answers for "move file to folder php"

PHP
2

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
6

php move file

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

Code answers related to "move file to folder php"

Browse Popular Code Answers by Language