当前位置: 首页> 函数类别大全> closelog

closelog

关闭系统日志链接
名称:closelog
分类:网络Network
所属语言:php
一句话介绍:关闭系统记录器的连接。

定义和用法

closelog() 函数关闭系统记录器的连接。

实例

打开和关闭系统记录器的连接:

<?php
function _log($text) {
openlog("phperrors", LOG_PID | LOG_PERROR);
syslog(LOG_ERR, $text);
closelog();
....
....
}
?>

语法

closelog()
同类函数
  • 获取互联网主机名对应的 IPv4 地址列表 gethostbynamel

    gethostbynamel

    获取互联网主机名对应的IPv4地址列表
  • 检查与给定Internet主机名或IP地址对应的DNS记录 checkdnsrr

    checkdnsrr

    检查与给定Internet主机名或IP地
  • stream_set_blocking的别名 - 为资源流设置阻塞或者阻塞模式 socket_set_blocking

    socket_set_blocking

    stream_set_blocking的
  • 返回主机名对应的 IPv4地址 gethostbyname

    gethostbyname

    返回主机名对应的IPv4地址
  • 将人类可读的IP地址转换为其压缩的in_addr表示形式 inet_pton

    inet_pton

    将人类可读的IP地址转换为其压缩的in_
  • stream_set_timeout的别名 - 在流上设置超时周期 socket_set_timeout

    socket_set_timeout

    stream_set_timeout的别
  • 获取互联网主机名对应的 MX 记录 getmxrr

    getmxrr

    获取互联网主机名对应的MX记录
  • 发送原生 HTTP 头 header

    header

    发送原生HTTP头
热门文章