PHP » PYTHON |
login |
register |
about
|
PYTHON posix_getpwuid
is this article helpful?
|
Python replacement for PHP's posix_getpwuid
[
edit
| history
]
import pwd pwd.getpwuid(uid) posix_getpwuid(PHP 4, PHP 5) posix_getpwuid — Return info about a user by user id Description
array posix_getpwuid
( int $uid
)
Returns an array of information about the user referenced by the given user ID. Parameters
Return ValuesReturns an associative array with the following elements:
Examples
Example #1 Example use of posix_getpwuid()
<?php The above example will output something similar to: Array ( [name] => tom [passwd] => x [uid] => 10000 [gid] => 42 [geocs] => "tom,,," [dir] => "/home/tom" [shell] => "/bin/bash" )
|
more
Recently updated
more
Most requested
more
Last requests
|