try{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "newCommand.php?command="+hostname+"_shutdown", false);
xmlHttp.send(null);
var response = xmlHttp.responseText;
if (response==""){
response = "empty";
}
alert(response);
catch(error){
alert(error);
}
}`
Also need the code of the PHP-script, newCommand.php
Обсуждают сегодня