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

search for in the

Tabelele de comparații ale tipurilor PHP> <Domeniul Internet: TCP, UDP, SSL și TLS
[edit] Last updated: Fri, 17 May 2013

view this page in

Domeniul Unix: Unix și UDG

unix:// și udg:// (udg:// începând cu PHP 5).

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

unix:// oferă acces la o conexiune de flux prin socket în domeniul Unix. udg:// oferă un transport alternativ unui socket din domeniul Unix utilizând protocolul datagramelor utilizatorului.

Socket-urile din domeniul Unix, spre deosebire de cele din domeniul Internet, nu necesită un număr de port. În cazul fsockopen() parametrul portno trebuie să fie stabilit 0.



add a note add a note User Contributed Notes Domeniul Unix: Unix și 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 | stats | sitemap | contact | advertising | mirror sites