rendered paste body $sh = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
if (socket_bind($sh, '127.0.0.1', 9000)) {
DoLogMsg("Socket bound correctly");
} else {
DoLogMsg("Socket not bound");
}
$buf = '###inuse|' . $_GET['DocID'] . '\\' . $tran;
$len = strlen($buf);
if (socket_sendto($sh, $buf, $len, 0x100, '192.168.10.100', 9000) !== false) {
DoLogMsg("Message sent correctly");
} else {
DoLogMsg("Message not sent");
}
socket_close($sh);
-----
PHP Warning: socket_sendto() [<a href='function.socket-sendto'>function.socket-sendto</a>]: unable to write to socket [32]: Broken pipe in /var/www/phpscripts/qa/index.php on line 265