Hi,
Quick & simple question:
I have to send the next data to a socket in order to make a popup visible on
a windows machine..
TITLE Title of popup [enter]
TEXT Text in popup [enter]
POPUP [enter]
<?
$s=socket_raw_c onnect($host,$p ort,15,'TITLE Test \nTEXT Text in
popup\nPOPUP\n' );
function socket_raw_conn ect ($server, $port, $timeout,$reque st) {
if (!is_numeric($p ort) or !is_numeric($ti meout)) {return false;}
$socket = fsockopen($serv er, $port, $errno, $errstr, $timeout);
if(!$socket) { echo "Opening socket error"; exit(); }
sleep(10); #Wait for program... bug :-)
$put=fputs($soc ket, $request);
sleep(10);
fclose($socket) ;
}
?>
Now, I have tried the whole scala of \r \n \r\n \0x0a etc.. for \n but it
doesn't seem to work..
Anyone a bright idea???
Thanx in advance,
Marco
Quick & simple question:
I have to send the next data to a socket in order to make a popup visible on
a windows machine..
TITLE Title of popup [enter]
TEXT Text in popup [enter]
POPUP [enter]
<?
$s=socket_raw_c onnect($host,$p ort,15,'TITLE Test \nTEXT Text in
popup\nPOPUP\n' );
function socket_raw_conn ect ($server, $port, $timeout,$reque st) {
if (!is_numeric($p ort) or !is_numeric($ti meout)) {return false;}
$socket = fsockopen($serv er, $port, $errno, $errstr, $timeout);
if(!$socket) { echo "Opening socket error"; exit(); }
sleep(10); #Wait for program... bug :-)
$put=fputs($soc ket, $request);
sleep(10);
fclose($socket) ;
}
?>
Now, I have tried the whole scala of \r \n \r\n \0x0a etc.. for \n but it
doesn't seem to work..
Anyone a bright idea???
Thanx in advance,
Marco
Comment