Re: sockets issues ?
| From: | Leo | Date: | Thu, 26 Jul 2001 17:06:29 +0000 |
| Subject: | Re: sockets issues ? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-61080@lists.php.net to get a copy of this message | ||
On Thursday 26 July 2001 18:06, Arnauld Dravet - smurfie wrote:
>
> Then i tried that:
> $sock_tab = socket_get_status($sock);
> if ($sock_tab["unread_bytes"] >= 0)
> {
> $a_lire = true;
> while ($a_lire)
> {
> $bytes_left = $sock_tab["unread_bytes"];
> print("<br>Reading from the socket: ($bytes_left bytes left in the
> socket buffer) <br>");
> $buffer = fgets($sock, 128);
> print("$buffer");
> flush();
> $buffer="";
> $sock_tab = socket_get_status($sock);
> if ($sock_tab["unread_bytes"] = 0) $a_lire = false;
missing = here:
if ($sock_tab["unread_bytes"] == 0) $a_lire = false;
> }
> print("$buffer<br>");
> }
> else print("<br>No informations received on the socket.<br>");
>
On the other hand, i've also encountered misc. socket problems in 4.0.6.
--Leo