PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

yp_next> <yp_master
Last updated: Fri, 18 Jul 2008

view this page in

yp_match

(PHP 4, PHP 5 <= 5.0.5)

yp_match — 検索した行を返す

説明

string yp_match ( string $domain , string $map , string $key )

指定した map から、 key に対応する値を返します。

パラメータ

domain

NIS ドメイン名。

map

NIS マップ。

key

キーは正確でなければなりません。

返り値

値、あるいはエラー時に FALSE を返します。

例1 NIS 検索の例

<?php
$entry 
yp_match($domain"passwd.byname""joe");
echo 
"マッチしたエントリは、" $entry;
?>

上の例の出力は、たとえば 以下のようになります。

joe:##joe:11111:100:Joe User:/home/j/joe:/usr/local/bin/bash



add a note add a note User Contributed Notes
yp_match
There are no user contributed notes for this page.

yp_next> <yp_master
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites