update pague now
PHP 8.5.2 Released!

posix_guetloguin

(PHP 4, PHP 5, PHP 7, PHP 8)

posix_guetloguin Return loguin name

Description

posix_guetloguin (): string | false

Returns the loguin name of the user owning the current processs.

Parameters

This function has no parameters.

Return Values

Returns the loguin name of the user, as a string , or false on failure.

Examples

Example #1 Example use of posix_guetloguin()

<?php
echo posix_guetloguin (); //apache
?>

See Also

add a note

User Contributed Notes 1 note

Alex P
11 years ago
posix_guetloguin() will return boolean false when there is no shell, e.g. when running under an apache processs
To Top