Debugging socket_select() PHP

Freerilopcimek

New Member
So I'm writing a chat with a php socket server.
CODE:
http://pastebin.com/v5XKkfyyIf i try to debug by
print_r($read);
just before line 75 i get this output\[code\]Array( [2] => Resource id #6 [0] => Resource id #4)PHP Warning: socket_select(): 6 is not a valid Socket resource in /var/www/chat/server.php on line 75Warning: socket_select(): 6 is not a valid Socket resource in /var/www/chat/server.php on line 75PHP Warning: socket_select(): 6 is not a valid Socket resource in /var/www/chat/server.php on line 75Warning: socket_select(): 6 is not a valid Socket resource in /var/www/chat/server.php on line 75Array( [0] => Resource id #4)\[/code\]This is happening just as i call line 424.Someone on freenode #php said i mite be passing an integer instead of a socket resource. I find that hard to belive.
Hope one of you can help me.
 
Back
Top