Forum und email

네트워크 함수

소개

요구 조건

이 확장을 빌드할 때 외부 라이브러리가 필요하지 않습니다.

설치

이 함수들은 설치하지 않아도 사용할 수 있습니다; PHP 코어의 일부입니다.

실행시 설정

이 함수의 작동은 php.ini 설정에 영향을 받습니다.

Network Configuration Options
Name Default Changeable Changelog
define_syslog_variables "0" PHP_INI_ALL  
PHP_INI_* 상수에 대한 자세한 상세와 정의는 php.ini directives를 참고하십시오.

위 설정 지시어에 대한 간단한 설명입니다.

define_syslog_variables boolean

Whether or not to define the various syslog variables (e.g. $LOG_PID, $LOG_CRON, etc.). Turning it off is a good idea performance-wise. At runtime, you can define these variables by calling define_syslog_variables().

자원형

이 확장은 리소스형을 정의하지 않습니다.

예약 상수

아래 상수들은 PHP 코어의 일부로, 항상 사용할 수 있습니다.

openlog() Options
Constant Description
LOG_CONS if there is an error while sending data to the system logger, write directly to the system console
LOG_NDELAY open the connection to the logger immediately
LOG_ODELAY (default) delay opening the connection until the first message is logged
LOG_NOWAIT
LOG_PERROR print log message also to standard error
LOG_PID include PID with each message
openlog() Facilities
Constant Description
LOG_AUTH security/authorization messages (use LOG_AUTHPRIV instead in systems where that constant is defined)
LOG_AUTHPRIV security/authorization messages (private)
LOG_CRON clock daemon (cron and at)
LOG_DAEMON other system daemons
LOG_KERN kernel messages
LOG_LOCAL0 ... LOG_LOCAL7 reserved for local use, these are not available in Windows
LOG_LPR line printer subsystem
LOG_MAIL mail subsystem
LOG_NEWS USENET news subsystem
LOG_SYSLOG messages generated internally by syslogd
LOG_USER generic user-level messages
LOG_UUCP UUCP subsystem
syslog() Priorities (in descending order)
Constant Description
LOG_EMERG system is unusable
LOG_ALERT action must be taken immediately
LOG_CRIT critical conditions
LOG_ERR error conditions
LOG_WARNING warning conditions
LOG_NOTICE normal, but significant, condition
LOG_INFO informational message
LOG_DEBUG debug-level message
dns_get_record() Options
Constant Description
DNS_A IPv4 Address Resource
DNS_MX Mail Exchanger Resource
DNS_CNAME Alias (Canonical Name) Resource
DNS_NS Authoritative Name Server Resource
DNS_PTR Pointer Resource
DNS_HINFO Host Info Resource (See IANA's » Operating System Names for the meaning of these values)
DNS_SOA Start of Authority Resource
DNS_TXT Text Resource
DNS_ANY Any Resource Record. On most systems this returns all resource records, however it should not be counted upon for critical uses. Try DNS_ALL instead.
DNS_AAAA IPv6 Address Resource
DNS_ALL Iteratively query the name server for each available record type.

Table of Contents

  • checkdnsrr — 인터넷 호스트 네임이나 IP 어드레스에 대응되는 DNS 레코드를 체크함
  • closelog — 시스템 로그에 기록을 못하도록 연결을 닫습니다.
  • debugger_off — PHP 내부 디버거 사용을 멈춥니다.
  • debugger_on — PHP 내부 디버거를 사용합니다.
  • define_syslog_variables — syslog에 연관된 모든 상수를 초기화합니다.
  • dns_check_record — Alias of checkdnsrr
  • dns_get_mx — Alias of getmxrr
  • dns_get_record — Fetch DNS Resource Records associated with a hostname
  • fsockopen — 인터넷이나 유닉스 도메인의 소켓 연결을 열어줍니다.
  • gethostbyaddr — 주어진 IP 어드레스에 대응이 되는 인터넷 호스트 이름을 가져옵니다.
  • gethostbyname — 주어진 인터넷 호스트 이름에 대응되는 IP 어드레스를 가져옵니다.
  • gethostbynamel — 주어진 인터넷 호스트 이름에 대응이 되는 IP 어드레스의 목록을 가져옵니다.
  • getmxrr — 주어진 인터넷 호스트 이름에 대응이 되는 MX 레코드를 가져옵니다.
  • getprotobyname — 프로토콜과 조합된 프로토콜 번호를 가져옵니다.
  • getprotobynumber — 프로토콜 번호와 조합된 프로토콜의 이름을 가져옵니다.
  • getservbyname — 인터넷 서비스와 프로토콜과 조합이 되어있는 포트 번호를 가져옵니다.
  • getservbyport — 포트와 프로토콜에 대응이 되는 인터넷 서비스를 가져옵니다.
  • header — Send a raw HTTP header
  • headers_list — Returns a list of response headers sent (or ready to send)
  • headers_sent — Checks if or where headers have been sent
  • inet_ntop — Converts a packed internet address to a human readable representation
  • inet_pton — Converts a human readable IP address to its packed in_addr representation
  • ip2long — (IPv4) 인터넷 프로토콜의 점이 찍혀 있는 주소를 포함한 문자열을 고유의 주소로 바꾸어줍니다.
  • long2ip — (IPv4) 인터넷 네크워크 주소를 인터넷 표준의 점이 찍혀있는 문자열로 바꿉니다.
  • openlog — 시스템 로그에 연결합니다
  • pfsockopen — 지속적인 인터넷이나 유닉스 소켓 연결을 엽니다.
  • setcookie — Send a cookie
  • setrawcookie — Send a cookie without urlencoding the cookie value
  • socket_get_status — 존재하는 소켓의 자원에 대한 정보를 반환합니다.
  • socket_set_blocking — 소켓의 모드를 설정 (blocking 모드/ non-blocking 모드)
  • socket_set_timeout — 소켓에서의 시간초과 주기
  • syslog — 시스템 로그 메시지를 생성합니다.