Error with PHP Websocket and Wamp Server

后端 未结 3 1334
你的背包
你的背包 2020-12-18 08:11

I\'m really new about this of Websockets, i\'m trying to connect this websocket: phpwebsocket with WAMP server, first, in my httpd.conf I wrote listen 9300, and if i go to l

相关标签:
3条回答
  • 2020-12-18 08:45

    You have to install php_socket extension. http://php.net/manual/en/install.windows.extensions.php This link have all information about it.

    0 讨论(0)
  • 2020-12-18 08:57

    In WAMP Server, if you are running from a command line you are using PHP CLI.

    The PHP CLI uses a different php.ini file to that used when php runs in apache.

    Edit c:\wamp\bin\php\php5.x.y\php.ini
    

    and uncomment the php_sockets extension line and any other extensions you may need when running PHP CLI.

    0 讨论(0)
  • 2020-12-18 09:08

    i am running on my site and the hosting partner said you cant enable sockets on shared hosting u need to buy vps server hosting any solution.on local host it is working fine property in dubai

    0 讨论(0)
提交回复
热议问题