while (!feof($sock)) { $s = socket_get_status($sock); echo fread($sock, $s[unread_bytes']); flush();// <<<---- will this block until the web client recieve the data? }
or any better way to handle what i do? :)
seindal
9:29 am on Dec 20, 2002 (gmt 0)
It depends. The web server has a buffer, but if the data is much larger than the buffer, the server might sit there waiting for the data to drain. OTOH, if you have a caching proxy in front of your server, this probably won't be a problem.
The write is not completely synchronous, if that is what you're asking.
How large are your pages? If they aren't too big, don't worry.
René.
Xuefer
9:37 am on Dec 20, 2002 (gmt 0)
it's not a page it's for download php connect to mIRC DCC port get data from dcc and pass it to web user
changed to used functions in sockets.so it works as expect :) thx for replying