O'Reilly logo

PHP 5 Unleashed by John Coggeshall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, followed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required