超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<所支持的套接字传输器(Socket Transports)列表PHP 类型及比较符表>
Last updated: Fri, 22 Jun 2007

Unix 领域:UNIX 和 UDG

unix://PHP 3udg://PHP 5

  • unix:///tmp/mysock

  • udg:///tmp/mysock

unix:// 提供了在 UNIX 域中对套接字流连接的访问。udg:// 提供了替代的传输器以用户数据报协议(UDP)来访问 UNIX 域套接字。

Unix 域套接字(UNIX Domain Socket),和 Internet Domain Socket 不同,不期望端口号。在 fsockopen()portno 参数应被设为 0。




add a note add a note User Contributed Notes
Unix 领域:UNIX 和 UDG
mattias at sudac dot org
27-Oct-2003 01:54
To open a unix domain socket with PHP 4.3.3 it seams to work if you call fsockopen with port less then 1 and target the path to the socket not prefixed with "unix://".
Ex:
$s = fsockopen("/tmp/socket",0);

<所支持的套接字传输器(Socket Transports)列表PHP 类型及比较符表>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22