Home >Backend Development >PHP Tutorial >php socket的有关问题

php socket的有关问题

WBOY
WBOYOriginal
2016-06-13 10:02:19970browse

php socket的问题
我已经配置
C:\windows\php.ini:
extension_dir   =   "C:/PHP/ext "
extension=php_sockets.dll
并把php_sockets.dll拷贝到system32下
而且我的system32下有winsock.dll和wsock32.dll

但是用socket_create的时候还是提示Fatal   error:   Call   to   undefined   function   socket_create()

帮忙解决一下,谢谢各位。

------解决方案--------------------
我的phpinfo里没有Sockets Support这项
————————————————————————
没有就说明,你php里面载入socket模块失败
检查php.ini
------解决方案--------------------
还有一个可能.
你修改的PHP.INI不是一个生效的PHP.INI

Statement:
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