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

search for in the

Tabelas de comparação de tipo do PHP> <Internet Domain: TCP, UDP, SSL, e TLS
[edit] Last updated: Fri, 17 May 2013

view this page in

Domínio Unix: Unix e UDG

unix:// e udg:// (udg:// desde o PHP 5)

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

unix:// provê acessos a conexão via Unix sockets. udg:// provê um transporte alternativo para um socket Unix usando o protocolo de user datagram.

Sockets Unix, diferentes de sockets de Internet, não experam um número de porta. No caso de fsockopen() o parâmetro deve ser o valor 0.



add a note add a note User Contributed Notes Domínio Unix: Unix e 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