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 10. Stream and Network Programming

Terms You’ll Need to Understand

  • File wrappers

  • Streams

  • Sockets

  • Blocking calls

Techniques You’ll Need to Master

  • Filesystem functions

  • Network functions

  • Socket functions

  • Stream functions

  • URL functions

  • List of supported protocols/wrappers

  • List of supported transports

php.ini Settings to Understand

  • allow_url_fopen (Filesystem)

  • auto_detect_line_endings (Filesystem)

  • default_socket_timeout (Filesystem)

  • from (Filesystem)

  • user_agent (Filesystem)

What Are File Wrappers?

File wrappers are pieces of code that PHP uses to read from and write to different types of files. They are part of PHP’s Streams architecture.

File wrappers allow you to use PHP’s built-in filesystem functions on things that aren’t normal files.

Figure 10.1 shows what ...

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