Chapter 20. Working with the File System

PHP, like many programming languages, boasts a wide range of functions that allow the developer to access the file system. In this chapter you'll find everything you'll need to work with the file system, including reading and writing text or binary files, working with PHP's fopen() URL wrappers, manipulating directories, and the Unix file permission system.

Working with Files in PHP

As seems to be the case with almost every aspect of PHP, there is incredible native support for working with files from within PHP. I'll be starting off this chapter with a discussion of the basics, including reading and writing text files, ...

Get PHP 5 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.