What is move uploaded file in PHP Filesystem

In this article I am going to explain about move_uploaded_file function in PHP.
  • 1501

PHP move_uploaded_file() Function

The filesytem move_uploaded_filesystem function moves an uploaded file to a new location but this function only work on files uploaded via HTTP POST. The move_uploaded_file functiion returns true on success, or false on failure.

Syntax of move_uploaded_file function     

move_uploaded_file(file, destination)

Parameters in move_uploaded_file function

It have two parameter:

Parameter Description
file The filename of the uploaded file.
destination The destination of the move file.

Example of filesystem move_uploaded_file function




$file = "C:\wamp\www\Dinesh\Mcn.txt";



  echo ("$file is moved in new location");




  echo ("$file is not uploaded via HTTP POST");








You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.