note 15293 added to ref.sockets
| From: | carl at NOSPAM dot thep dot lu dot se | Date: | Tue, 04 Sep 2001 21:21:06 +0000 |
| Subject: | note 15293 added to ref.sockets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17620@lists.php.net to get a copy of this message | ||
It appears that the socket functions do not work on file
descriptors that weren't created by the socket functions.
E.g. getpeername() does not work on stdin even if stdin
is a socket (as it will be if the php script is started by inetd).
This reduces the usefulness of these functions since there's
no fork() function in PHP and thus no(?) good way of
implementing a daemon.
http://www.php.net/manual/en/ref.sockets.php