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

search for in the

yp_next> <yp_master
Last updated: Fri, 14 Nov 2008

view this page in

yp_match

(PHP 4, PHP 5 <= 5.0.5)

yp_matchRetourne la ligne associée

Description

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

Retourne la valeur associée à la clé key pour la carte map .

Liste de paramètres

domain

Le nom du domaine NIS.

map

La carte NIS.

key

Cette clé doit être exacte.

Valeurs de retour

Retourne la valeur, ou FALSE si une erreur survient.

Exemples

Exemple #1 Exemple avec yp_match()

<?php
$entry 
yp_match($domain"passwd.byname""joe");
echo 
"La valeur trouvée est : " $entry;
?>

L'exemple ci-dessus va afficher quelque chose de similaire à :

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, 14 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites