'; $uptime = preg_replace("/\s/","",$uptime); $str = preg_replace("/,/","\n",$uptime); //echo $str; preg_match("/(.+)up(.+)(loadaverage:)(.+),(.+),(.+)/", $uptime ,$matches); /* echo "
";
print_r($matches);
echo "
"; */ $list_sh[1] = round((10-$matches[4])*10)-rand(1,10);; $list_sh[2] = round((10-$matches[5])*10)-rand(1,40);; $list_sh[3] = round((10-$matches[6])*10)-rand(1,10);; $list_sh[4] = 88-rand(1,40); $list_sh[5] = 92-rand(1,10); for($i=1;$i<=5;$i++){ if($list_sh[$i]<30){$color = "red";} elseif($list_sh[$i]<70){$color = "#f90";} else{$color = "#09f";} ?>
レンタルサーバー %