CHAPTER 16Communicating with Internet Services

When you use PHP to build dynamic web applications, you need to communicate with other Internet services. This can be as simple as sending an e-mail with the content of a user-submitted form or as advanced as a full-featured mail client that allows the user to send and receive e-mails. PHP has several ways of communicating with Internet services. The most basic form is socket communication, where all the protocol features must be implemented in the PHP script. More advanced features for reading remote files are implemented as wrapper functions for the normal file handling functions, and some services are implemented with a function set that makes it easy to write complex applications without having ...

Get PHP 5 Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.