- As discussed in class, the superglobal $_FILES is an associative array of items that are uploaded. With that said, here is the PHP documentation regarding some of the errors that can occur when trying to upload a file. Professor Ross checks for some of these errors in the worked example.
- Here is the PHP Documentation on using $_FILES. It's a bit tricker to find because it's not on the main doc page.
- Ok! I really want to talk about move_upload_file() function built-in to PHP because it is very interesting and quite important! So, what does it do? Well, form the function name itself, one would assume that it moves and uploaded file to a new location, which would be %100 correct! What is important to note here is that the function returns a boolean. True on success, False otherwise with a warning. Here is the official PHP documentation regarding the function.