Prior to beginning this discussion forum, read Chapter 13: PHP Classes and Objects from the course textbook, and review the Predefined Variables: $_FilesLinks to an external site. web page, which addresses file upload variables and superglobals. Superglobals are specially-defined array variables in PHP that make it easy for you to get information about a request or its context. Superglobals were introduced in PHP 4.1.0, and they can be accessed from any function regardless of scope.
For your initial post,
- Determine which superglobal function can be used to send files from client browsers to the web server.
- Describe the process on how you can send files to the server.
- Provide the code you created to develop the upload functionality.
- Explain what the first thing you should do—as a web developer—to handle the file after you upload it to the server.