Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 David Powers
About this chapter
Cite this chapter
Powers, D. (2014). Using PHP to Manage Files. In: PHP Solutions. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0635-5_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-0635-5_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0636-2
Online ISBN: 978-1-4842-0635-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books