yp_get_default_domain

(PHP 4, PHP 5 <= 5.0.5)
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:

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

Examples:
Example for the default domain
1
2
3
4
<?php
$domain = yp_get_default_domain();
echo "Default NIS domain is: " $domain;
?>
doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.