Quote:
Originally Posted by Optix
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
}