June 2002
Beginner
759 pages
80h 42m
English
getlogin
getlogin
Returns the current login from
/etc/utmp (Unix systems only), if any. If
null, use getpwuid. For
example:
$login = getlogin || getpwuid($<) || "Intruder!!";