PHP Solutions pp 173-205 | Cite as

Using PHP to Manage Files

  • David Powers


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.


File System Internal Pointer News Feed Local File System Associative Array 

Copyright information

© David Powers 2014

Authors and Affiliations

  • David Powers
    • 1
  1. 1.LondonUnited Kingdom

Personalised recommendations