PHP MOVE FILE
//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
MeVyom
//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
move_uploaded_file(file_path, moved_path)