Yellow Pages (AKA NIS)
$yp = popen("ypmatch -x", "r"); if (!$yp) { die("Can find a list yellow pages maps/files"); } ?>
while (!feof($yp)) { $lin = fgets($yp, 1500); // echo $lin; if (ereg("Use \"([a-zA-Z0-9\._-]+)\".*", $lin, $re)) { echo "
$re[1]\n"; } } pclose($yp); ?>
David Horton
Last modified: Thu Jul 6 12:24:39 EST 2000