this is the code in question:
$runCommand = “%SystemRoot%//system32//ping -n 1 -w 1 $ip”;
$WshShell = new COM(“WScript.Shell”);
$name = $WshShell->exec($runCommand)->StdOut->ReadAll;
$ur = stristr($name, ‘Host di destinazione non raggiungibile’);
$ur1 = stristr($name, ‘Richiesta scaduta’);
the error it gives me is ‘class’ COM not found. Is a php error