PHP Http
ADVERTISEMENTS
PHP HTTP authentication is the feature to send an "Authentication Required" message to the client browser causing it to pop up a Username/Password input window.
- It is used to re-direct the PHP script from the current location to a new location.
- It is used to authenticate Username/Password.
- It is used to authentication digest.
- It is used to send header information to the HTTP header.
PHP HTTP Installation
They are the part of Core PHP, there is no installation needed.
PHP HTTP Functions
# | Functions | Description |
---|---|---|
1. | header() | header() function is used to send a raw HTTP header. |
2. | headers_sent() | headers_sent() function checks if or where headers have been sent. |
3. | headers_list() | headers_list() function returns a list of response headers sent. |
4. | header_remove() | header_remove() function remove previously set headers. |
5. | setcookie() | setcookie() function defines a cookie to be sent along with the rest of the HTTP headers. |
6. | setrawcookie() | setrawcookie() function send a cookie without URL encoding the cookie value, Its very useful to send raw cookie data. |