Summary: Return login name
PHP 5Related methods: posix_getpwnam
string posix_getlogin()
Description
Returns the login name of the user owning the current process.
Return: string
Returns the login name of the user, as a string.
Parameters
The method does not take any parameters
Examples
Example #1 Example use of posix_getlogin()
<?php
echo posix_getlogin(); //apache
?>