chapter 3

HTTP in PHP

The hypertext transport protocol (HTTP) defines a simple series of procedures by which a client computer may make a request of a server computer, and the server computer may reply. The protocol is central to the everyday operation of the World Wide Web, in which it is used to request and provide files to browsers in response to URL entries and clicks on hyperlinks.

Bear in mind that in some cases, notably those involved in a multi-tier software application, the concepts of “client” and “server” can be somewhat muddled. Even if both machines involved in an HTTP transaction are in a data center and would be referred to in conversation as “servers,” the one making a request is the HTTP client and the one responding to that ...

Get Multi-Tier Application Programming with PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.