Hello. I'm tried an example from PHP manual with simple TCP/IP Client. I'm create a socket to FTP server, then read data from socket
[PHP]
while ($out = socket_read($socket, 2048)) {
   echo $out;
}
[/PHP]
when all data are read, socket_read() don't return an empty string, it's hangs.
Can you tell me, how to write work with it? Thank you.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to