Chapter 18. NETWORK

Topics in This Chapter

  • HTTP Authentication

  • Controlling Browser Cache

  • Setting Document Type

  • Email with Attachments

  • Verifying an Email Address

Most anything you write in PHP will be in the context of a network. It's a language intended primarily to produce HTML documents via the HTTP protocol. PHP allows you to code without worrying about the underlying protocols, but it also allows you to address the protocols directly when necessary. This chapter deals intimately with two important protocols, HTTP and SMTP. These are the protocols for transferring Web documents and mail. I've attempted to describe some common problems and provide solutions. This chapter may address a particular problem you face, such as protecting a Web page with ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with O’Reilly online learning.

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