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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to