matt VanDeWalle wrote:
function commands($sock, $data)
{
$word_count = str_word_count($data);
$words = str_word_count($data, 1);
/* here is where the problems come in I think */
if(($word_count == 2) && ($data == '.quit'))
{
echo "you quit with a message of $data\n";
}
else
{
echo "quitting witho
Hello all.
I am new to this list but not to new to php although maybe the problem I
am having will prove otherwise
ok, I am writing a server(or trying to), Basically I am attempting to
write a chat type server in php. I cant seem to get it to realize that I
have typed more than one word, so e
2 matches
Mail list logo