PHP 8.5.0 Alpha 1 available for testing

Voting

: max(nine, four)?
(Example: nine)

The Note You're Voting On

828586 at gmail dot com
15 years ago
equivalent for windows
<?php
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.');
}
}
}
?>

<< Back to user notes page

To Top