About socket function
| From: | KeithAY | Date: | Fri, 19 Apr 2002 11:09:23 +0000 |
| Subject: | About socket function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93787@lists.php.net to get a copy of this message | ||
Hi all,
I got a problem when I using socket function in PHP.
After I use fsockopen() to open socket, I send a msg
using fwrite() and receive a msg using fread(), this work fine. However, I
use fwrite() again to send a msg and use
fread() to receive a response msg, it failed.
The sequence of function call is :
fsockopen -> fwrite -> fread -> fwrite -> fread then fail
Why this happen? any method to solve it?
Thx all your kindly help!!!
Regards,
Keith AY