April 2026
Intermediate
1009 pages
34h 15m
English
There are two ways to establish a connection to the outside world with PHP: Use the same mechanism as for file handling in the form of so-called streams, or use protocol-specific functions that are built into PHP. This chapter is dedicated to streams as these are much more powerful.
Chapter 27 shows further (and standardized) options for exchanging messages with another computer: through web services and more.
Streams are an essential concept in the processing of files, whether remote or local. A stream is a data stream—that is, a flow of data that can be processed with PHP. The special feature here is that PHP supports different variants of streams via a standardized interface. This ...
Read now
Unlock full access