O'Reilly logo

Zend PHP Certification Study Guide by Zend Technologies

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 6. File Manipulation

Techniques You’ll Need to Master

  • How to open a file

  • How to read from a file

  • How to write to a file

  • How to close a file

  • How to interact with the filesystem

  • How to lock files

  • Miscellaneous functions for handling files

Terms You’ll Need to Understand

  • File resources

  • File properties

  • Advisory locking

  • End of File

Interacting with files is a constant aspect of programming. Whether they are cache files, data files, or configuration files, the ability to manipulate files and their contents is a core skill for PHP programmers. In this chapter, you will learn how to open file stream resources for reading from and writing to files, as well as filesystem-level functions for manipulating file attributes.

Opening Files

When interacting with files ...

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