Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP HTTP Functions

PHP HTTP Functions


PHP HTTP Introduction

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


Installation

HTTP functions are part of the PHP core. These functions can be used without installation.


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 sent (or to-be-sent) response headers. 5
headers_sent() Checks whether HTTP headers have been sent / where they 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.