i want to know what is wrong with this code,I want to run an external program through php
function thisfunction(){
var x = new XMLHttpRequest();
x.open("GET","plm.php",true);
x.send();
return false;
}
this is my php file
<?php
function _exec($cmd)
{
$WshShell = new COM("WScript.Shell");
$oExec = $WshShell->Run($cmd, 0,false);
echo $cmd;
return $oExec == 0 ? true : false;
}_exec("mspaint.exe");
?>