YP_MASTER(3) 1 YP_MASTER(3)
yp_master - Returns the machine name of the master NIS server for a map
SYNOPSIS
string yp_master (string $domain, string $map)
DESCRIPTION
Returns the machine name of the master NIS server for a $map.
PARAMETERS
o $domain
- The NIS domain name.
o $map
- The NIS map.
RETURN VALUES
EXAMPLES
Example #1
Example for the NIS master
<?php
$number = yp_master($domain, $mapname);
echo "Master for this map is: " . $master;
?>
SEE ALSO
yp_get_default_domain(3).
PHP Documentation Group YP_MASTER(3)