Home > Backend Development > PHP Tutorial > wamp环境,所支持的套接字传输器只有tcp 和 udp

wamp环境,所支持的套接字传输器只有tcp 和 udp

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:50:39
Original
1092 people have browsed it

如题,在测试时发现我的PHP环境所支持的套接字传输器只有tcp 和 udp,如果要支持其他更多的类型要如何配置呢?
PHP版本是5.4.3
代码:

print_r( stream_get_transports() );
Copy after login
Copy after login

结果:

Array
(
    [0] => tcp
    [1] => udp
)
Copy after login
Copy after login

回复内容:

如题,在测试时发现我的PHP环境所支持的套接字传输器只有tcp 和 udp,如果要支持其他更多的类型要如何配置呢?
PHP版本是5.4.3
代码:

print_r( stream_get_transports() );
Copy after login
Copy after login

结果:

Array
(
    [0] => tcp
    [1] => udp
)
Copy after login
Copy after login

PHP支持的有
TCP,UDP,SSL,TLS,Unix 和 UDG

你需要开始openssl才能支持ssl和tls
nix环境才能支持unix和UDG

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template