View Single Post
  #22  
Old 23rd September 2011, 10:38
cooly's Avatar
cooly cooly is offline
Senior Member
 
Join Date: Jun 2011
United Kingdom
Posts: 26
Default
Quote:
Originally Posted by Optix View Post
No, the memcache is only a NOTICE.

The problem is the function "sys_getloadavg" isn't here on Windows env. This is causing your blank page.

I'm currently working on a new admin panel. So you can play with it in a couple of days :)
maybe do something similar to this.

Code:
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
ob_start();
passthru('typeperf -sc 1 "\processor(_total)\% processor time"',$status);
$content = ob_get_contents();
ob_end_clean();
if ($status === 0) {
    if (preg_match("/\,\"([0-9]+\.[0-9]+)\"/",$content,$load)) {
        if ($load[1] > get_config('busy_error')) {
            header('HTTP/1.1 503 Too busy, try again later');
            die('Server too busy. Please try again later.');
        }
    }
}
}
else{
//call your sys_getloadavg here
}