WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Return system statistics
None
An array of current system information containing the following key/value pairs:
Key | Type |
---|---|
cron_script | int |
http_script | int |
heap_free | int |
heap_largest_free | int |
heap_blocks | int |
memory_errors | int |
<pre><? $arr=stats(); print_r($arr); ?></pre>
Typical output for the above example:
[$arr] = Array ( (int) [cron_script] => 0 (int) [http_script] => 1 (int) [heap_free] => 44024 (int) [heap_largest_free] => 37328 (int) [heap_blocks] => 571 (int) [memory_errors] => 0 )
freemem() - Return free memory space
mem_dump() - Write the current memory map to /dump.txt
mem_usage() - Write memory usage to standard output
phpinfo() - Return information about the system