Приглашаем посетить
Естествознание (es.niv.ru)

[Chapter 3] 3.2.50 getlogin

PreviousChapter 3
Functions
Next
 

3.2.50 getlogin

getlogin

This function returns the current login from /etc/utmp, if any. If null, use getpwuid. For example:

$login = getlogin || (getpwuid($<))[0] || "Intruder!!";


PreviousHomeNext
3.2.49 gethostentBook Index3.2.51 getnetbyaddr