Chapter 5. Working with Files and Directories
In the last chapter, we discussed the basics of building our student portal application. In this chapter, we will focus on file interactions and operations. PHP allows us to work with files that are available both locally and on a remote server. Files are commonly used to store logs and configurations of an application. They are also used to carry data from one application to another. In this chapter, we will begin by working with data imports from files and data exports to files. Later, we will look at two different types of logging mechanisms that will take us further with our interaction with files.