Yes I know that there are no $POST, $GET, $SESSION, $REQUEST or $_COOKIE superglobals ,but i am confuse how can i dynamically send comand from web to socket.
Okay I have this example
<form method='post' action='toMycommand.php'>
<input type="submit" name="reboot" id="reboot" value="Reboot">
$command = 'xxxxxxx';//this command is for rebooting the device..I want now to send this to socket how can i send this ?
I have running socket listener ->listener.php which executed by the batch file..I want now the $command to pass to my lisener.php..
I know i could not do this.