<html>
<! posix_get_process_info.php                                 >
<! Appendix E, Oracle Database XE PHP Web Programming         >
<! by Michael McLaughlin                                      >
<!                                                            >
<! This script demonstrates how to get POSIX process info.    >
<head>
<title>
  Appendix E : posix_get_process_info.php
</title>
</head>
<body>
<?php
  // Print title.
  print "The result of <b>posix_getpwuid(posix_getuid()).</b><br />";

  // Secure information based on user identifier.
  foreach ($userinfo = posix_getpwuid(posix_getuid()) as $name => $value)
    print "[$name][$value]<br />";

  // Print line break.
  print "<hr />";

  // Print title.
  print "The result of <b>posix_getpwnam(<i>user_name</i>).</b><br />";

  // Use the name to display information on user identifier.
  foreach (posix_getpwnam($userinfo['name']) as $name => $value)
   print "[$name][$value]<br />";
?>
</body>
</html>
