If you have access to the Apache server status page, try using the "auto" flag:
http://yourserver/server-status?auto
. , "IdleWorkers". PHP5 , . , , cURL , , .
<?php
$status = file('http://yourserver/server-status?auto');
foreach ($status as $line) {
if (substr($line, 0, 10) == 'IdleWorkers') {
$idle_workers = trim(substr($line, 12));
print $idle_workers;
break;
}
}
?>