توابع HTTP PHP

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/sent to where.
setcookie() Define the cookie sent with the rest of the HTTP header.
setrawcookie() Define the cookie sent with the rest of the HTTP header (without URL encoding).