You are writing a PHP script and you need to upload a file. How would you do this?
- move_uploaded_file()
- copy()
- upload_file()
- attach_file()
To upload a file in PHP, you can use the move_uploaded_file() function. This function moves an uploaded file to a specified destination. For more details, refer to: http://php.net/manual/en/function.move-uploaded-file.php
Loading...
Related Quiz
- How can we define a variable accessible in functions of a PHP script?
- How do you call a static method in PHP?
- You need to access information about the server in your PHP script. How would you do this using a superglobal?
- How can you make a field required in a PHP form?
- The while loop in PHP tests the condition ______ executing the block of code.