This is the last chapter of the book, and we are going to be going out with a bang. In this chapter, I’m going to teach you how to deal with files in PHP. We will now be able to accept uploads, write to files, save information, and do other cool stuff.
You might be thinking that this is exactly the same as cookies. Yeah, with cookies you can save some information about a user. However, you could only save a specific type of data; with file handling, you can save whatever information you like to the server. You can also let the user upload files directly to the server. File handling allows uploads and enables you to write to files on the user’s computer.