我们为大家收集整理了关于PHP网络操作函数,以方便大家参考。PHP中gethostbyaddr、gethostbyname、header_remove、http_response_code、ip2long等网络中经常用到的函数。
checkdnsrr — 给指定的主机(域名)或者IP地址做DNS通信检查
closelog — 关闭系统日志链接
define_syslog_variables — 初始化所有syslog相关变量
dns_check_record — checkdnsrr别名
dns_get_mx — getmxrr别名
dns_get_record — 获取指定主机的DNS记录
fsockopen — 打开一个网络连接或者一个Unix套接字连接
gethostbyaddr — 获取指定的IP地址对应的主机名
gethostbyname — 获取指定的主机名对应的IP地址
gethostbynamel — 获取指定的主机名对应的一系列IP地址
gethostname — 获取主机名
getmxrr — 获取指定的主机名对应的MX记录
来源: http://www.51edu.com/it/bckf/490284.html