PHP HTTP functions
PHP HTTP Profile
HTTP function allows you to before any other output is sent, sent by a Web server to the browser information to operate.
installation
HTTP functions are part of the PHP core. No installation needed to use these functions.
PHP HTTP functions
PHP: indicates theearliest version of PHP that supports the function.
函数 | 描述 | PHP |
---|---|---|
header() | 向客户端发送原始的 HTTP 报头。 | 3 |
headers_list() | 返回已发送的(或待发送的)响应头部的一个列表。 | 5 |
headers_sent() | 检查 HTTP 报头是否发送/已发送到何处。 | 3 |
setcookie() | 向客户端发送一个 HTTP cookie。 | 3 |
setrawcookie() | 不对 cookie 值进行 URL 编码,发送一个 HTTP cookie。 | 5 |
PHP HTTP constants
no.