Swipe to navigate through the chapters of this book
PHP has a huge range of functions designed to work with the server’s file system, but finding the right one for the job isn’t always easy. This chapter cuts through the tangle to show you some practical uses of these functions, such as reading and writing text files to store small amounts of information without a database. Loops play an important role in inspecting the contents of the file system, so you’ll also explore some of the Standard PHP Library (SPL) iterators that are designed to make loops more efficient.
Please log in to get access to this content
To get access to this content you need the following product:
- Using PHP to Manage Files
- Sequence number
- Chapter number
- Chapter 7