socket reading problem

From: Date: Fri, 30 May 2003 18:11:32 +0000
Subject: socket reading problem
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3495@lists.php.net to get a copy of this message
hi all I would like to know... is there a special encoding for socket messages ? I read messages from a socket and I use a small function to parse them, but I got some strange results wheras everything function rights when I type the server message in a GtkEntry... well here is some piece of code : function parse_user_msg() { $command = $this->usercommand->get_chars(0, -1); $action = explode(' ',$command); switch(strtolower($action[0])){ //some code case '/test': $action2 = explode(' ', $command, 2); $newcommand = $action2[1]; $this->parse_server_msg($action2[1]); break; // } } now you've seen the function which transmits what I type to the parsing function... I got a log with the server messages and when I transmit the same message everything works perfectly... well I understand it is not very clear but if u want to have a look try this : http://www.central-game.com/silver_work/irc chatter.zip thanx ++ silver_d

« previous php.gtk.general (#3495) next »