Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : YP/NIS Functions : yp_get_default_domain

yp_get_default_domain

Fetches the machine's default NIS domain (PHP 4, PHP 5 <= 5.0.5)
string yp_get_default_domain ( )

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.

Return Values

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

Examples

Example 2683. Example for the default domain

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


Change Language


Follow Navioo On Twitter
yp_all
yp_cat
yp_err_string
yp_errno
yp_first
yp_get_default_domain
yp_master
yp_match
yp_next
yp_order
eXTReMe Tracker