函数:yp_order()
文章分类:NIS 函数库
yp_order
返回 map 的序数。
语法: int yp_order(string domain, string map);
返回值: 整数
函数种类: 网络系统
|
| |
| 内容说明 |
本函数用来取得 map 的序数,在取得 Domain 及 map 之后使用。返回值为 map 序数,若失败则返回 false。
|
| |
| 使用范例 |
<?php
$number = yp_order($domain, $mapname);
if(!$number) {
echo yp_errno() . ": " . yp_err_string();
}
echo "Map 序数为: " . $order;
?>
|
| |
| 参考 |
yp_get_default_domain() yp_errno() yp_err_string()
NIS 的全名为 Network Information System,另外一个说法就是 YP (Yellow Pages)。NIS 或 YP 可以让许多不同的 UNIX 机器拥有相同的系统信息,例如相同的用户帐号密码,使系统管理人员及用户都容易在不同的机器间穿梭,不可避免的,会有安全上的缺点,欲使用 NIS 函数库,记得要在编译 PHP 时将 YP 的选项打开,即加上 --with-yp 选项。
责任编辑:rongsijing
给文章打分...
0




