diff --git a/src/Check.php b/src/Check.php new file mode 100644 index 0000000..4842b95 --- /dev/null +++ b/src/Check.php @@ -0,0 +1,15 @@ +isAlive()); // wait vlmcs exit + preg_match_all('/Sending activation request \(KMS V6\)/', $vlmcs->getStdout(), $match); + return count($match[0]) != 0; +} + +$host = 'kms.343.re'; +echo "check $host -> "; +echo (kmsCheck($host) ? 'yes' : 'no') . PHP_EOL;