Getting system statistics

php.internals

Senthil Murugan

20 years ago
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

Sean Coates

20 years ago
> 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

Ilia A.

20 years ago
Statgrab extension in PECL is what you are looking for. On 9-May-06, at 12:51 AM, Senthil Murugan wrote:
> 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
Ilia Alshanetsky Advanced Internet Designs Inc. ilia@prohost.org