1
guardian2k1
Xoops Memory Usage - PHP Script

While checking out CPG Dragonfly I found a neat little script that shows memory usage by the Content Management System.

Unfortunately I can't get the script to work in Xoops. Anyway know the reason why?

le="color: #000000"><?php if (function_exists('memory_get_usage') && $start_mem > 0) { $total_mem = memory_get_usage()-$start_mem; $foot1 .= '<br />Memory Usage: '.(($total_mem >= 1048576) ? round((round($total_mem / 1048576 * 100) / 100), 2).' MB' : (($total_mem >= 1024) ? round((round($total_mem / 1024 * 100) / 100), 2).' KB' : $total_mem.' Bytes')); }
"Linux is extremely user-friendly. It also happens to be extremely selective when picking its friends."

http://www.nuxified.com | http://debcentral.org