|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2001-06-12 01:12 UTC] sniper@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 12:00:01 2025 UTC | 
This is a small part of my script.. EVERYTHING works except for the read.. and that works soon as I take out the non_blocking, however my script doesnt work properly then so thats not a valid solution.. The writeout is just a write that allows me to specifiy a single connection or in this case "all" which sends to all.. That works.. but the read.. never returns anything, its like its not buffering input and holding it in the socket till I can read it. function newlogins() { global $connectbuff, $sock, $buffcount, $logonmess; if (($connectbuff[$buffcount] = accept_connect($sock)) > -1) { writeout ($connectbuff[$buffcount], $logonmess); $send = "You are the " . $buffcount . " player to log on\n"; writeout ($connectbuff[$buffcount], $send); $send = "Enter a username : "; writeout ($connectbuff[$buffcount], $send); $buffcount++; } read($connectbuff[0],$buff,4096); writeout($connectbuff,$buff,"all"); }