I am trying just to send a zero to a socket server. But I get no response, it just hangs waiting for answer. I can se that the socket server has received the result. Any reasons for not receiving the answer. Here's the code;
<?
$hostname="10.5.2.16";
$port="6799";
$timeout="5";
$sp=fsockopen($hostname, $port, &$errno, &$errstr, $timeout);
if (!$sp)
{
print "$errstr [$errno]<BR>\n";
}
else
{
fputs ($sp,"0");
$line=fgets($sp, 1024);
{
echo $line;
}
fclose($sp);
}
?>
Thankful for help!