PHP HTTP
PHP HTTP Introduction
HTTP functions allow you to operate on information sent by the web server to the browser before other output is sent.
Installation
HTTP functions are part of the core of PHP. No installation is required to use these functions.
PHP HTTP Function
PHP: Indicates the earliest PHP version that supports this function.
Function | Description | PHP |
---|---|---|
header() | Send raw HTTP headers to the client. | 3 |
headers_list() | Returns a list of sent (or to be sent) response headers. | 5 |
headers_sent() | Check if/where HTTP headers have been sent. | 3 |
setcookie() | Send an HTTP cookie to the client. | 3 |
setrawcookie() | Sends an HTTP cookie without URL encoding the cookie value. | 5 |
PHP HTTP Constants
None.