search for in the  
<List of Supported Socket TransportsPHP type comparison tables>
Last updated: Thu, 19 May 2005

Unix Domain: Unix and UDG

unix:// since PHP 3, udg:// since PHP 5

  • unix:///tmp/mysock

  • udg:///tmp/mysock

unix:// provides access to a socket stream connection in the Unix domain. udg:// provides an alternate transport to a Unix domain socket using the user datagram protocol.

Unix domain sockets, unlike Internet domain sockets, do not expect a port number. In the case of fsockopen() the portno parameter should be set to 0.



User Contributed Notes
Unix Domain: Unix and UDG
mattias at sudac dot org
26-Oct-2003 11:54
To open a unix domain socket with PHP 4.3.3 it seams to work if you call fsockopen with port less then 1 and target the path to the socket not prefixed with "unix://".
Ex:
$s = fsockopen("/tmp/socket",0);

<List of Supported Socket TransportsPHP type comparison tables>
 Last updated: Thu, 19 May 2005
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: The Server Pages
Last updated: Thu May 19 17:35:34 2005 CDT