note 20378 added to function.socket-write
| From: | squirt at ramtits dot remove dot this dot ca | Date: | Tue, 02 Apr 2002 01:57:51 +0000 |
| Subject: | note 20378 added to function.socket-write | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28483@lists.php.net to get a copy of this message | ||
I'm not sure if I'm using this properly, but everytime I try using the socket_write()
function,
done in a form, using socket_write($sock,$u_input,strlen($u_input));
But I keep on getting a Broken Pipe error. All the data is correct if I echo $sock it shows as
Resource #1, then just for safety sake, I did something like:
echo "Sock = $sock, Str = $u_input, Len = " . strlen($u_input); just to see if all the
data was proper and it was. What I'm basically trying to do is make a webbased telnet
application to allow people to go to 'talkers' via the www and have the majority of things
worked out w/ exception of the writing to the socket. It can read from it fine, just can't
write. If anyone can help out with this, cheers...
--
http://www.php.net/manual/en/function.socket-write.php
http://master.php.net/manage/user-notes.php?action=edit+20378
http://master.php.net/manage/user-notes.php?action=delete+20378
http://master.php.net/manage/user-notes.php?action=reject+20378