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.
Files
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 ...