I'm using fgets($fp,256)
to get a string from a socket i opened before.
the socket is sending a string of the length of 256 which from the end point of the actual data
is filled with'\0'( end of string).
the problem is that fgetsnever finish reading the string and get timed out.
how can i solve this (i want to get 256 chars but be able to get '\0' in them)
can it be done?
Guy