PHP HTTP Functions

PHP HTTP Introduction

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

Installation

HTTP functions are an integral part of PHP's core. These functions can be used without installation.

PHP 5 HTTP Functions

Function Description
header() Send the original HTTP header to the client.
headers_list() Return a list of the sent (or to be sent) response headers.
headers_sent() Check if the HTTP header has been sent or where it has been sent.
setcookie() Define the cookie sent along with the rest of the HTTP header.
setrawcookie() Define the cookie sent along with the rest of the HTTP header (not URL encoded).