How to use move_uploaded_file() function in php
The move_uploaded_file() function moves an uploaded file to a new destination. If the destination file already exists, it will be overwritten. This function only works on files uploaded via PHP’s HTTP POST upload mechanism.
This is the simple way to Move File Using PHP. If you have move file one place to another place you have used to move_uploaded_file() Function.
Syntax
move_uploaded_file("String file path","String destination path");
Example
move_uploaded_file($_FILES['images']['tmp_name'],"upload/".$_FILES['images']['name']);