Hi, i am writing a php-script which connects with a server which sends it its 
time, which is of length of 4-bytes. The time sended is in the same format as 
the output of time() function in php. My problem is that when i use the 
$buf .= socket_read($socket, 1, PHP_NORMAL_READ);  // 4 Time
or
$buf = socket_read($socket, 4, PHP_NORMAL_READ);
and 
echo $buf;
 
It outputs the undefined characters. I am using the "ord()" function to get the 
ASCII code of these characters. It output these but this is not required output.
 
Any suggestion or help?
 
Thanks.


      

[Non-text portions of this message have been removed]

Reply via email to