February 2012
Intermediate to advanced
1184 pages
37h 17m
English
getlogin
This function returns the current login name if found. On Unix
systems, this is read from the utmp(5) file. If it
returns false, use getpwuid instead.
For example:
$login = getlogin() || (getpwuid($<))[0] || "Intruder!!";
Read now
Unlock full access