PowerPoint Slide 1

 

PowerPoint Slide 2

 

PowerPoint Slide 3

 

PowerPoint Slide 4
  • 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.
PowerPoint Slide 5

 

PowerPoint Slide 6

 

PowerPoint Slide 7
  • 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.
PowerPoint Slide 8

 

PowerPoint Slide 9

 

PowerPoint Slide 10