PHP 手册
上一页 |  | 下一页

# yp_get_default_domain

(PHP 3 >= 3.0.7, PHP 4, PHP 5 <= 5.0.4)

yp_get_default_domain -- Fetches the machine's default NIS domain

## 说明

string yp_get_default_domain ( void )

Returns the default domain of the node. Can be used as the domain parameter for successive NIS calls.

A NIS domain can be described a group of NIS maps. Every host that needs to look up information binds itself to a certain domain. Refer to the documents mentioned at the beginning for more detailed information.

## 返回值

Returns the default domain of the node or `FALSE`. Can be used as the domain parameter for successive NIS calls.

## 范例

例 1. Example for the default domain

`<?php $domain = yp_get_default_domain(); echo "Default NIS domain is: " . $domain; ?>`

上一页 | 起始页 | 下一页
yp_first | 上一级 | yp_master