is php's feof() supposed to detect NULL-termination - null characters?!
i have a piece of code that opens a socket to a remote machine but if i use
PHP:
while(!feof($the_socket)) {
_______echo fread($the_socket,128);
}
the connection times out (after few minutes) and i don't get the returned data untill then... i think i should be able to fread only until the data gets NULL-terminated. the people on the other side claim it is...
is there another way to detect NULL termination of a stream?!...
for the moment i use stream_set_timeout() with low values so i don't wait for the socket to time out on itself....
please help with this..
thanks a lot...............