PHP HTTPFunctions


PHP HTTP Introduction

The HTTP functions allow you to manipulate information sent by the web server to the browser before any other output is sent.


Installation

The HTTP functions are part of the PHP core. No installation is required to use these functions.


PHP HTTP Functions

PHP: Indicates the earliest PHP version that supports this function.

Function Description PHP
header() Sends a raw HTTP header to the client. 3
headers_list() Returns a list of response headers sent (or ready to send). 5
headers_sent() Checks if/what headers have been sent. 3
setcookie() Sends an HTTP cookie to the client. 3
setrawcookie() Sends an HTTP cookie without URL-encoding the cookie value. 5


PHP HTTP Constants

None.

Other Extensions