|
PHP5中文手册
tcpwrap_check(PECL tcpwrap:0.1-1.0) tcpwrap_check — Performs a tcpwrap check 说明
bool tcpwrap_check
( string $daemon
, string $address
[, string $user
[, bool $nodns
]] )
This function consults the /etc/hosts.allow and /etc/hosts.deny files to check if access to service daemon should be granted or denied for a client. 参数
返回值This function returns TRUE if access should be granted, FALSE otherwise. 范例Example#1 Deny all connections from localhost If your /etc/hosts.deny file contains:
And your code looks like:
<?php 参见For more details please consult hosts_access(3) man page. |