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

search for in the

PHP Tür Karşılaştırma Tabloları> <Genel Ağ Alanı: TCP, UDP, SSL ve TLS
[edit] Last updated: Fri, 17 May 2013

view this page in

Unix Alanı: Unix ve UDG

unix:// ve (PHP 5'ten beri) udg://.

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

unix:// aktarımı Unix alanında bir soket akımı bağlantısına erişim sağlar. udg:// ise aynı sokete UDP protokolü kullanılarak erişim sağlar.

Unix alanı soketleri, Genel Ağ soketlerinin tersine bir port numarası gerektirmezler. Bu durumda fsockopen() işlevinin portnum değiştirgesine 0 atanmalıdır.



add a note add a note User Contributed Notes Unix Alanı: Unix ve 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