You should use the move_uploaded_file() function in PHP to move the uploaded file to a desired directory.

  • TRUE
  • FALSE
  • nan
  • nan
In PHP, the move_uploaded_file() function is specifically designed to handle file uploads and move the uploaded file to a desired directory. It takes the temporary file path (provided in the $_FILES array) as the first argument and the desired destination path as the second argument. This function ensures proper handling of uploaded files, including security considerations and handling of file permissions and naming conflicts.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *