note 16396 added to function.pfsockopen
| From: | theril at mbnet dot fi | Date: | Sun, 28 Oct 2001 00:11:12 +0000 |
| Subject: | note 16396 added to function.pfsockopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19522@lists.php.net to get a copy of this message | ||
Is there really no way to pass the resource handle to another script?
If there's not, I don't really see the purpose of this function, since one could do the
same thing with fsockopen().
If one would need to get user input to send to the server with the same socket that's reading
through it, there is a workaround though: Save the user input in to a file or database and and then
read it in the same loop you use to read from the socket.
I haven't tried this techique yet, so there is a change that it will bring the system to
it's knees by the constant file/database reading.
I'll try this out and post experiencies here.
--
http://www.php.net/manual/en/function.pfsockopen.php
http://master.php.net/manage/user-notes.php?action=edit+16396
http://master.php.net/manage/user-notes.php?action=delete+16396
http://master.php.net/manage/user-notes.php?action=reject+16396