Re: Determining system resources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 04 Nov 2004 08:25:19 -0800, Robin Getz
<rgetz@xxxxxxxxxxxxxxxxxxxx> wrote:
> I have been unable to find a php function to determine available system
> memory (physical and swap)?

> php -r "system('free -m');"
             total       used       free     shared    buffers     cached
Mem:           249        246          2          0          4         86
-/+ buffers/cache:        154         94
Swap:          486         12        473

The system has to support whatever memory command you use.

*nix: free
windoze: mem


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux