Документ взят из кэша поисковой машины. Адрес оригинального документа : http://oit.cmc.msu.ru/php/function.yp-get-default-domain.html
Дата изменения: Sun Feb 3 22:58:19 2002
Дата индексирования: Mon Oct 1 22:19:51 2012
Кодировка:
yp_get_default_domain

yp_get_default_domain

(3.0.7 - 3.0.18 only, PHP 4 >= 4.0.0)

yp_get_default_domain -- Fetches the machine's default NIS domain

Description

int yp_get_default_domain ( (void);)

yp_get_default_domain() returns the default domain of the node or FALSE. 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.

Example 1. Example for the default domain

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