In this chapter, we’re going to be looking at how PHP manages input-output. We’ll be examining how we can read from or write to the file system as well as the network.
There are two main groups of functions to deal with files: those that work with file resources, and those that work with a filename.
Remember that a resource is a type of variable that can’t be stored directly in PHP. A file resource is an operating system file handle.
All the functions that deal with file resources begin with a single f letter and then have a verb describing their function. For example, fopen() ...