O'Reilly logo

PHP for Teens by Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14. Working with Files

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required