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
