Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Internet Domain: TCP, UDP, SSL, and TLSPHP type comparison tables>
^List of Supported Socket TransportsLast updated: Mon, 26 Oct 2026

Unix Domain: Unix and UDG

unix:// and udg://.

  • 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.

Note:

Unix domain sockets are not supported on Windows.


<Internet Domain: TCP, UDP, SSL, and TLSPHP type comparison tables>
^List of Supported Socket TransportsLast updated: Mon, 26 Oct 2026