php move file
snippet in php

php move file

user1947

//Use the rename() function.
rename('first_location/image1.jpg', 'new_location/image1.jpg');