View Single Post
Old July 26th, 2007, 3:59 AM   #1 (permalink)
GamingHybrid
Bow before Surpass!
Super #1
 
Joined in Sep 2004
1,547 posts
Gave thanks: 91
Thanked 49 times
PHP Memory Checker

I'm trying to do a "if" statement where the PHP checks on the server's memory usage and performs actions based on the amount.

For example, if it could find the usage of memory in percentage values, then I'd have an if statement tha would...

PHP Code:
if (memory => low) { 
/* show content */ 
} elseif (memory => medium) { 
/* show limited content */ 
} elseif (memory =< high) { 
/* block access */ 

So, would anyone know the right type of method to find the memory usage and then create a similar if statement?

Thank you
__________________
GamingHybrid is offline   Reply With Quote