posix_getrlimit
posix_getrlimit
Return info about system resource limits
**posix_getrlimit** $resource
returns an
of information about the current resource's soft and hard limits.
posix_getrlimit``array
resource
If null, all current resource limits will be returned.
Otherwise, specify the
to retrieve a specific limit.
resource limit constant
Returns an associative of elements for each limit that is defined. Each limit has a soft and a hard limit.
The function returns false on failure.
array
**Voorbeeld: Example use of **
<?php
$limits = posix_getrlimit();
print_r($limits);
?>
Array
(
[soft core] => 0
[hard core] => unlimited
[soft data] => unlimited
[hard data] => unlimited
[soft stack] => 8388608
[hard stack] => unlimited
[soft totalmem] => unlimited
[hard totalmem] => unlimited
[soft rss] => unlimited
[hard rss] => unlimited
[soft maxproc] => unlimited
[hard maxproc] => unlimited
[soft memlock] => unlimited
[hard memlock] => unlimited
[soft cpu] => unlimited
[hard cpu] => unlimited
[soft filesize] => unlimited
[hard filesize] => unlimited
[soft openfiles] => 1024
[hard openfiles] => 1024
)
posix_setrlimit