You have a PHP script and you need to move an uploaded file to a specific directory. How would you do this?
- move_uploaded_file()
- copy()
- move_file()
- attach_file()
To move an uploaded file to a specific directory in PHP, you can utilize the move_uploaded_file() function. This function moves the file to the desired directory. Check out: http://php.net/manual/en/function.move-uploaded-file.php
Loading...
Related Quiz
- What function is used to open a file in PHP?
- A static method in PHP can be called without creating an instance of the class.
- In PHP, to declare an array, you use the array() function or the [] ______.
- How can we check if the value of a given variable is alphanumeric?
- A PHP class implements an interface using the implements keyword.