略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: yp_get_default_domain

2024-04-24

yp_get_default_domain

(PHP 4, PHP 5 < 5.1.0)

yp_get_default_domainFetches the machine's default NIS domain

说明

yp_get_default_domain ( void ) : string

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.

范例

Example #1 Example for the default domain

<?php
$domain 
yp_get_default_domain();
echo 
"Default NIS domain is: " $domain;
?>
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.yp-get-default-domain.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3