socket_read() hangs with FTP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux