I have running batch file as my socket listener that will receive data from connected client. I want to send command to the connected client through web page, but I am having problem or I have no idea on how to get this work, to pass the parameter to the my running batch file listener.
I tried this code snippet in sending command to client of my running batch file.
if(isset($_GET['comparam'])) {
$mycommand = $_GET['comparam'];
foreach ($clients as $send_sock) {
socket_write($send_sock, $mycommand);
}
}
but nothing happens, my code is not working.
I appreciate someone can help me on this problem.