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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 David Powers
About this chapter
Cite this chapter
Powers, D. (2019). Using PHP to Manage Files. In: PHP 7 Solutions. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4338-1_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4338-1_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4337-4
Online ISBN: 978-1-4842-4338-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)