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

search for in the

Comparaison de types en PHP> <Liste des modes de transport de sockets disponibles
Last updated: Fri, 20 Jun 2008

view this page in

Domaine Unix : UNIX et UDG

unix:// et udg:// (udg:// depuis PHP 5).

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

unix:// fournit l'accès à un flux de type socket, sur un domaine Unix. udg:// fournit un mode de transport alternatif, avec un protocole de datagrammes utilisateurs.

Les sockets du domaine Unix, contrairement à celles du domaine Internet, n'utilisent pas de numéro de port. Dans ce cas, le paramètre portno de fsockopen() doit valoir 0.



add a note add a note User Contributed Notes
Domaine Unix : UNIX et UDG
Matthew Fortune
16-Feb-2007 11:03
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