PHP Solutions pp 179-213 | 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.


Text File Error Message Internal Pointer Carriage Return News Feed 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information


Authors and Affiliations

  • David Powers

There are no affiliations available

Personalised recommendations