Re: [PHP] how to close a socket output, leave input

2006-12-08 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-12-08 09:38:44 +0800: > Hello All, > > 1. create a socket > 2. write something > 3. (just) close output > 4. read the server response > 5. close the socket > > step 3, i mean close output, let the server know the client send complete socke

RE: [PHP] how to close a socket output, leave input

2006-12-08 Thread Mustafa Aras Koktas
Is this for the client application or server? I assume it is a client as you are trying to read a server response. socket_write() will return the length of the buffer that is written to server, so you can check that value to make sure the send is complete. --Aras -Original Message- From: