To move the uploaded file to a desired directory in PHP, you can use the move_uploaded_file() function where the first argument is the temporary filename and the second argument is the ______.
- desired destination path
- file handle
- file size
- file extension
In PHP, the move_uploaded_file() function is used to move the uploaded file to a desired directory. The first argument of the function is the temporary filename (provided in the $_FILES array), and the second argument is the desired destination path where you want to move the file. This function ensures secure and proper file transfer, taking care of file permissions and naming conflicts.
Loading...
Related Quiz
- In PHP, a line of code is terminated with a ______.
- In PHP, you can define a static method using the static keyword like public static function FunctionName() { ______ }.
- How to run the interactive PHP shell from the command line interface?
- How do you handle errors when using output control functions in PHP?
- A PHP class implements an interface using the implements keyword.