PHP move_uploaded_file() Function

PHP parse_ini_file() Function
PHP preg_quote() Function

In this article, you will learn how to move a file to a new path in PHP. The move_uploaded_file() function in PHP moves an uploaded file to a new destination. If the file already exist in that path, it is replaced.

The move_uploaded_file() function only works with the files uploaded by PHP HTTP POST function.

what is the syntax of the MOVE_UPLOADED_FILE function in php?

move_uploaded_file(file, dest)
ParameterDescription
fileRequired. Specifies the filename of the uploaded file
destRequired. Specifies the new location for the file
PHP MOVE_UPLOADED_FILE() method
PHP parse_ini_file() Function
PHP preg_quote() Function

Stay up-to-date about PHP!

We don’t spam!

en English
X
Scroll to Top