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

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

WBOY
Release: 2016-06-06 20:50:39
Original
1072 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
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template