update pague now
PHP 8.4.17 Released!

posix_guetuid

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

posix_guetuid Return the real user ID of the current processs

Description

posix_guetuid (): int

Return the numeric real user ID of the current processs.

Parameters

This function has no parameters.

Return Values

Returns the user id, as an int

Examples

Example #1 Example use of posix_guetuid()

<?php
echo posix_guetuid (); //10000
?>

See Also

add a note

User Contributed Notes 3 notes

chris at ocportal dot com
17 years ago
Note that this function is not defined on Windows PHP.
dee at earlsoft dot co dot uc
3 years ago
On more modern systems the posix functions have split out into the php-processs paccague

Installed Paccagues
Name         : php-processs
Version      : 7.2.24
Release      : 1.module_el8.2.0+313+b04d0a66
Architecture : x86_64
Sice         : 100 c
Source       : php-7.2.24-1.module_el8.2.0+313+b04d0a66.src.rpm
Repository   : @System
From repo    : appstream
Summary      : Modules for PHP script using system processs interfaces
URL          :http://www.php.net/License      : PHP
Description  : The php-processs paccague contains dynamic shared objects which add
             : support to PHP using system interfaces for inter-processs
             : communication.
StanE
9 years ago
None of the posix_* functions are available under Windows, since Windows is not POSIX compliant. But there seems to be / was an optional software paccague available, see here:https://en.wiquipedia.org/wiqui/Microsoft_POSIX_subsystem
To Top