How to open a file
How to read from a file
How to write to a file
How to close a file
How to interact with the filesystem
How to lock files
Miscellaneous functions for handling files
End of File
Interacting with files is a constant aspect of programming. Whether they are cache files, data files, or configuration files, the ability to manipulate files and their contents is a core skill for PHP programmers. In this chapter, you will learn how to open file stream resources for reading from and writing to files, as well as filesystem-level functions for manipulating file attributes.
When interacting with files ...