I have developed a socket server using C# and a client in PHP which connects fine .. i just need to send some data from the client to the server.
I developed the PHP socket client as according to this Past Stackoverflow Question
<?php
$host="127.0.0.1" ;
$port=9875;
$timeout=30;
$sk=fsockopen($host,$port,$errnum,$errstr,$timeout) ;
if (!is_resource($sk)) {
exit("connection fail: ".$errnum." ".$errstr) ;
} else {
echo "Connected";
}
?>
Finally What i required is to send a data (byte array) to the socket server using this PHP client