downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

PHP type comparison tables> <Internet Domain: TCP, UDP, SSL und TLS
[edit] Last updated: Fri, 17 May 2013

view this page in

Unix-Domain: Unix und UDG

unix:// und udg:// (udg:// ab PHP 5).

  • unix:///tmp/mysock
  • udg:///tmp/mysock

unix:// bietet Zugriff auf Socket-Verbindungen in der Unix-Domäne. udg:// bietet eine auf dem User-Datagram-Protokoll basierende Alternative zu Unix-Domain-Sockets. protocol.

Unix-Domain-Sockets erwarten im Gegensatz zu Internet-Domain-Sockets keine Portnummer. Bei Nutzung der fsockopen()-Funktion sollte daher der zweite Parameter portno für diese immer als 0 übergeben werden.



add a note add a note User Contributed Notes Unix-Domain: Unix und UDG - [1 notes]
up
1
Matthew Fortune
6 years ago
It appears that fsockopen prior to php5 did not need the unix:// qualifier when opening a unix domain socket:

php4: fsockopen("/tmp/mysocket"......);

php5: fsockopen("unix:///tmp/mysocket"......);

This caught me out when upgrading.

 
show source | credits | sitemap | contact | advertising | mirror sites