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?

if (function_exists('memory_get_usage') && $start_mem 0) {
            
$total_mem memory_get_usage()-$start_mem;
            
$foot1 .= '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

Login

Who's Online

265 user(s) are online (212 user(s) are browsing Support Forums)


Members: 0


Guests: 265


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits