O'Reilly logo

PHP 7 Zend Certification Study Guide: Ace the ZCE 2017-PHP Exam by Andrew Beak

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

© Andrew Beak 2017
Andrew BeakPHP 7 Zend Certification Study Guidehttps://doi.org/10.1007/978-1-4842-3246-0_8

8. Input-Output

Andrew Beak
(1)
Grafham, Cambridgeshire, UK
 
In this chapter, we’re going to be looking at how PHP manages input-output. We’ll be examining how we can read from or write to the file system as well as the network.

Files

There are two main groups of functions to deal with files: those that work with file resources, and those that work with a filename.
Remember that a resource is a type of variable that can’t be stored directly in PHP. A file resource is an operating system file handle.
All the functions that deal with file resources begin with a single f letter and then have a verb describing their function. For example, fopen() ...

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