On Thu, 04 Nov 2004 08:25:19 -0800, Robin Getz
<[EMAIL PROTECTED]> 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

Reply via email to