Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

posix_uname

Description

The posix_uname of POSIX for PHP gets the system name.

Syntax

posix_uname(): array|false

Return

Returns a hash of strings with information about the system, false on failure.

IndexDescriptionExample
sysnameoperating system nameLinux
nodenamesystem namevaliant
releaseoperating system release2.2.10
versionoperating system version#4 Tue Jul 20 17:01:36 MEST 1999
machinesystem architecturei586
domainnameDNS domainname

A GNU extension and not part of POSIX.1, so this field is only available on GNU systems or when using the GNU libc.
example.com

Examples

1 · void

<?

$return = posix_uname();

print_r($return);

?>
Array
(
    [sysname] => Linux
    [nodename] => valiant
    [release] => 2.2.10
    [version] => #4 Tue Jul 20 17:01:36 MEST 1999
    [machine] => i586
    [domainname] => example.com
)
HomeMenu