php move file
//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
php move file
//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');
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));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us