# Getting system statistics

- Thread: https://externals.io/message/23206
- Original archive: https://news-web.php.net/php.internals/23206
- Started by Senthil Murugan on 2006-05-09T04:51:28+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #23206 — Senthil Murugan — 2006-05-09T04:51:28+00:00

URL: https://externals.io/message/23206#23206

Hi,

Is there any funciton to get the system related statistics like,
meminfo, cpuinfo, etc.

I just searched for that option but I could not find it.

In case of linux we can use /proc/meminfo but to make the code
portable, i am getting little bit worried.

Can any one help me in this regard?

Thanks,
Senthil Murugan

---

## #23210 — Sean Coates — 2006-05-09T06:06:24+00:00

URL: https://externals.io/message/23206#23210 · In reply to: #23206

> Is there any funciton to get the system related statistics like,
> meminfo, cpuinfo, etc.

Hello,

In the future, please use php-general@lists.php.net for anything not
related to PHP internals development.

As for your question, see http://pecl.php.net/statgrab

S

---

## #23216 — Ilia Alshanetsky — 2006-05-09T12:37:00+00:00

URL: https://externals.io/message/23206#23216 · In reply to: #23206

Statgrab extension in PECL is what you are looking for.




> Hi,
>
> Is there any funciton to get the system related statistics like,
> meminfo, cpuinfo, etc.
>
> I just searched for that option but I could not find it.
>
> In case of linux we can use /proc/meminfo but to make the code
> portable, i am getting little bit worried.
>
> Can any one help me in this regard?
>
> Thanks,
> Senthil Murugan
>
> --
> 
> 
>
>

Ilia Alshanetsky
Advanced Internet Designs Inc.
ilia@prohost.org
