English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP network functions allow you to access the Internet through PHP
These features can be used without installation. They are part of the PHP core.
Version-Indicates the earliest version of PHP that supports this function.
Number | Function | Description | Version |
---|---|---|---|
1 | checkdnsrr() | It checks the DNS records of the corresponding host or IP address. | 4 |
2 | closelog() | Close the connection of the system logger | 4 |
3 | define_syslog_variables() | Initialize the syslog variables | 4 |
4 | fsockopen() | It is used to open an Internet or Unix domain socket connection | 4 |
5 | gethostbyaddr() | It returns the error code from the last connection | 5 |
6 | gethostbyname() | It is used to get the Internet hostname specified by the IP address. | 4 |
7 | gethostbynamel() | It is used to get the IPV by the specified hostname4Address list | 4 |
8 | gethostname() | Used to get the hostname | 4 |
9 | getmxrr() | Used to send MX records to the host | 4 |
10 | getprotobyname() | Used to get the protocol number associated with the protocol name | 4 |
11 | getprotobynumber() | It is used to get all result lines and return the result set as an associative array | 4 |
12 | getservbyname() | Used to get the protocol name associated with the protocol number | 4 |
13 | getservbyport() | It is used to get the Internet service corresponding to the port number. | 4 |
14 | header_register_callback() | It registers a function to be called when PHP starts sending output. | 4 |
15 | header_remove() | It is used to delete previously set headers. | 4 |
16 | header() | It is used to send HTTP header lines. | 4 |
17 | headers_list() | It is used to return a list of sent Repose headers | 4 |
18 | headers_sent() | It checks if headers have been sent. | 4 |
19 | http_response_code() | It is used to get or set HTTP responses. | 4 |
20 | inet_ntop() | It is used to convert internet packets to a human-readable format. | 4 |
21 | inet_pton() | It is used to convert a human-readable IP address to in_addr format. | 4 |
22 | ip2long() | It is used to convert ipv4Convert an address to a long integer. | 4 |
23 | long2ip() | It is used to convert a long integer value to an IPv4Address. | 4 |
24 | openlog() | It is used to open a connection with the system logger. | 4 |
25 | pfsockopen() | It is used to open Internet or Unix domain sockets. | 4 |
26 | setcookie() | It was once used to set cookies. | 4 |
27 | setrawcookie() | It was once used to set cookies. | 4 |
28 | socket_set_blocking() | It is an alias of stream_set_blocking(), which has the block or unblock options in stream mode. | 4 |