| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 
 | <?xml version="1.0" encoding="utf-8"?>
<reference id="ref.nis">
	<title>YP/NIS 관련 함수</title>
	<titleabbrev>YP/NIS</titleabbrev>
	<partintro>
		<para>
    NIS (이전에는 옐로우 페이지(Yellow Pages)라고 불려졌습니다)는 중요한 관리자용 파일(예를 들면 패스워드 파일같은)을 네트워크 관리가 가능하도록 합니다.
	더 이상의 정보는 NIS의 man 페이지와 <ulink url="&url.nis;"> Introduction to YP/NIS </ulink>에 좀 더 참조할 만한 정보가 있습니다.
	또 <ulink url="&url.nis.book;">Managing NFS and NIS</ulink>라고 부르는 Hal Stern의 책도 있습니다.
   </para>
		<para>
    이 함수가 동작하도록 하고 싶다면 PHP를
    <option role="configure">--with-yp</option>(PHP 3)이나 
    <option role="configure">--enable-yp</option>(PHP 4)로 설정해야 합니다.
   </para>
	</partintro>
	<refentry id="function.yp-get-default-domain">
		<refnamediv>
			<refname>yp_get_default_domain</refname>
			<refpurpose>머신의 NIS 도메인의 기본값을 가져옵니다.</refpurpose>
		</refnamediv>
		<refsect1>
			<title>Description</title>
				<methodsynopsis>
					<type>int</type><methodname>yp_get_default_domain</methodname>
					<methodparam><type>void</type><parameter/></methodparam>
				</methodsynopsis>
			<para>
				<function>yp_get_default_domain</function>는 노드의 기본값을 반환하거나 &false;를 반환합니다.
	계속적인 NIS 호출을 위한 도메인의 매개변수로 사용될 수 있습니다.
    </para>
			<para> 
     NIS 도메인은 NIS 맵(map)으로 설명될 수 있습니다. 모든 호스트는 어떤 도메인에 대한 자신의 바인드 정보를 
	찾아야 할 필요가 있습니다. 좀 더 상세한 정보를 얻기 위해서 앞부분에 언급한 문서를 참조 하십시오.
    </para>
			<para>
				<example>
					<title>기본 도메인에 관한 예문</title>
					<programlisting role="php">
<?php
$domain = yp_get_default_domain();
echo "기본 NIS 도메인은: " . $domain;
?>
      </programlisting>
				</example>
			</para>
			<!--
    <para>
     See also: <link linkend="function.yp-errno">yp_errno</link> and
     <link linkend="function.yp-err-string">yp_err_string</link>
    </para>
-->
		</refsect1>
	</refentry>
	<refentry id="function.yp-order">
		<refnamediv>
			<refname>yp_order</refname>
			<refpurpose>map에 사용되는 순서번호를 반환합니다
			</refpurpose>
		</refnamediv>
		<refsect1>
			<title>Description</title>
				<methodsynopsis>
					<type>int</type><methodname>yp_order</methodname>
					<methodparam><type>string</type><parameter>domain</parameter></methodparam>
					<methodparam><type>string</type><parameter>map</parameter></methodparam>
				</methodsynopsis>
			<para>
				<function>yp_order</function>는 맵(map)의 순서번호를 반환하거나 &false;를 반환합니다.
    </para>
			<para>
				<example>
					<title>NIS 순서 예문</title>
					<programlisting role="php">
<?php
    $number = yp_order($domain,$mapname);
    echo "이 맵(map)의 순서 번호는 : " . $order;
?>
      </programlisting>
				</example>
			</para>
			<para>
     참조: <function>yp-get-default-domain</function>.
<!--
     linkend="function.yp-errno">yp_errno</link> and <link
     linkend="function.yp-err-string">yp_err_string</link>
-->
			</para>
		</refsect1>
	</refentry>
	<refentry id="function.yp-master">
		<refnamediv>
			<refname>yp_master</refname>
			<refpurpose>
     맵(map)에 사용되는 마스터 NIS 서버의 머신 이름을 반환합니다.
    </refpurpose>
		</refnamediv>
		<refsect1>
			<title>Description</title>
				<methodsynopsis>
					<type>string</type><methodname>yp_master</methodname>
					<methodparam><type>string</type><parameter>domain</parameter></methodparam>
					<methodparam><type>string</type><parameter>map</parameter></methodparam>
				</methodsynopsis>
			<para>
				<function>yp_master</function>는 맵(map)에 사용되는 마스터 NIS 서버의 머신 이름을 반환합니다.
    </para>
			<para>
				<example>
					<title>NIS 마스터(master)의 예문</title>
					<programlisting role="php">
<?php
$number = yp_master ($domain, $mapname);
echo "이 맵(map)의 마스터는: " . $master;
?>
      </programlisting>
				</example>
			</para>
			<para>
     참조: <function>yp-get-default-domain</function>.
<!--
     linkend="function.yp-errno">yp_errno</link> and <link
     linkend="function.yp-err-string">yp_err_string</link>
-->
			</para>
		</refsect1>
	</refentry>
	<refentry id="function.yp-match">
		<refnamediv>
			<refname>yp_match</refname>
			<refpurpose>매치(match)된 라인을 반환합니다.</refpurpose>
		</refnamediv>
		<refsect1>
			<title>Description</title>
				<methodsynopsis>
					<type>string</type><methodname>yp_match</methodname>
					<methodparam><type>string</type><parameter>domain</parameter></methodparam>
					<methodparam><type>string</type><parameter>map</parameter></methodparam>
					<methodparam><type>string</type><parameter>key</parameter></methodparam>
				</methodsynopsis>
			<para>
				<function>yp_match</function>지정된 맵(map)의 범위외에서 통과된 키와 조합된 값이나 &false;를 반환합니다. 
				이 키 값은 정확한 것이어야 합니다.
</para>
			<para>
				<example>
					<title>NIS 매치(match)의 예문</title>
					<programlisting role="php">
<?php
$entry = yp_match ($domain, "passwd.byname", "joe");
echo "매치(Match)된 목록 : " . $entry;
?>
      </programlisting>
				</example>
			</para>
			<para>
     이 경우에는 이렇게 될 수 있습니다: joe:##joe:11111:100:Joe
     User:/home/j/joe:/usr/local/bin/bash
    </para>
			<para>
     참조: <function>yp-get-default-domain</function>
				<!--
     linkend="function.yp-errno">yp_errno</link> and <link
     linkend="function.yp-err-string">yp_err_string</link>
-->
			</para>
		</refsect1>
	</refentry>
	<refentry id="function.yp-first">
		<refnamediv>
			<refname>yp_first</refname>
			<refpurpose>
     이름 붙여진 맵(map)에서 첫 번째 key-value 쌍을 반환합니다.
    </refpurpose>
		</refnamediv>
		<refsect1>
			<title>Description</title>
				<methodsynopsis>
					<type>array</type><methodname>yp_first</methodname>
					<methodparam><type>string</type><parameter>domain</parameter></methodparam>
					<methodparam><type>string</type><parameter>map</parameter></methodparam>
				</methodsynopsis>
			<para>
				<function>yp_first</function>는 이름 붙여진 도메인의 이름 붙여진 맵(map)의 첫 번째
	key-value 쌍을 반환하고, 그렇지 않은 경우에는 &false;를 반환합니다.
    </para>
			<para>
				<example>
					<title>첫번째 NIS 예문</title>
					<programlisting role="php">
<?php
    $entry = yp_first($domain, "passwd.byname");
    $key = key($entry);
    echo "이 목록에서 키 값을 가지고 있는 첫 번째 키는 " . $key 
          . " 그리고 값은  " . $entry[$key];
?>
      </programlisting>
				</example>
			</para>
			<para>
     참조: <function>yp-get-default-domain</function>
				<!--
     <link linkend="function.yp-errno">yp_errno</link> and <link
     linkend="function.yp-err-string">yp_err_string</link>
-->
			</para>
		</refsect1>
	</refentry>
	<refentry id="function.yp-next">
		<refnamediv>
			<refname>yp_next</refname>
			<refpurpose>이름 붙여진 맵(map)에서 다음의 key-value 쌍을 반환합니다.</refpurpose>
		</refnamediv>
		<refsect1>
			<title>Description</title>
				<methodsynopsis>
					<type>array</type><methodname>yp_next</methodname>
					<methodparam><type>string</type><parameter>domain</parameter></methodparam>
					<methodparam><type>string</type><parameter>map</parameter></methodparam>
					<methodparam><type>string</type><parameter>key</parameter></methodparam>
				</methodsynopsis>
			<para>
				<function>yp_next</function>키가 지정된 후에 이름 붙여진 맵(map)에서 다음의 key-value쌍을
	반환하거나 &false;를 반환합니다.
    </para>
			<para>
				<example>
					<title>NIS next 예문</title>
					<programlisting role="php">
<?php
$entry = yp_next ($domain, "passwd.byname", "joe");
if (!$entry) {
    echo yp_errno() . ": " . yp_err_string();
}
$key = key ($entry);
echo "joe가 키를 가진 뒤의 다음 목록" . $key 
      . " 값 " . $entry[$key];
?>
      </programlisting>
				</example>
			</para>
			<para> 
     참조: <function>yp-get-default-domain</function>.
<!--
     <link linkend="function.yp-errno">yp_errno</link> and <link
     linkend="function.yp-err-string">yp_err_string</link>
-->
			</para>
		</refsect1>
	</refentry>
	<!-- Function doesn't exist 
    
  <refentry id="function.yp-errno">
   <refnamediv>
   <refname>yp_errno</refname> 
    <refpurpose>
     Returns the error code of the previous operation
    </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>int</type><methodname>yp_errno</methodname>
      <void/>
     </methodsynopsis>
    <para> 
     <function>yp_errno</function> returns the error code of the
     previous operation.
    </para>
    <para>
     Possible errors are:
    </para>
    <para>
     <simplelist>
      <member>1 args to function are bad</member> 
      <member>2 RPC failure - domain has been unbound</member>
      <member>3 can't bind to server on this domain</member>
      <member>4 no such map in server's domain</member>
      <member>5 no such key in map</member>
      <member>6 internal yp server or client error</member>
      <member>7 resource allocation failure</member> 
      <member>8 no more records in map database</member>
      <member>9 can't communicate with portmapper</member>
      <member>10 can't communicate with ypbind</member>
      <member>11 can't communicate with ypserv</member>
      <member>12 local domain name not set</member> 
      <member>13 yp database is bad</member> 
      <member>14 yp version mismatch</member> 
      <member>15 access violation</member> 
      <member>16 database busy</member>
     </simplelist>
    </para>
    <para>
     See also <function>yp_err_string</function>.
    </para>
   </refsect1>
  </refentry>
-->
	<!-- Function doesn't exist 
  <refentry id="function.yp-err-string">
   <refnamediv>
   <refname>yp_err_string</refname> 
   <refpurpose>
    Returns the error string associated with the previous operation
   </refpurpose>
   </refnamediv>
   <refsect1>
    <title>Description</title>
     <methodsynopsis>
      <type>string</type><methodname>yp_err_string</methodname>
      <methodparam><type>void</type><parameter/></methodparam>
     </methodsynopsis>
    <para>
     <function>yp_err_string</function> returns the error message
     associated with the previous operation.  Useful to indicate what
     exactly went wrong.
    </para>
    <para>
     <example>
      <title>Example for NIS errors</title>
      <programlisting role="php">
<?php
    echo "Error: " . yp_err_string();
?>
      </programlisting>
     </example>
    </para>
    <para>
     See also <function>yp_errno</function>.
    </para>
   </refsect1>
  </refentry>
-->
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->
 |