Fatal error: Call to undefined function socket_create()

后端 未结 6 735
情深已故
情深已故 2020-12-01 09:15

My code is like this:

if( ($this->master=socket_create(AF_INET,SOCK_STREAM,SOL_TCP)) < 0 )

    {
    die(\"socket_create() failed, reason: \".socket_s         


        
6条回答
  •  伪装坚强ぢ
    2020-12-01 09:43

    If you are using xampp 7.3.9. socket already installed. You can check xampp\php\ext and you will get the php_socket.dll. if you get it go to your xampp control panel open php.ini file and remove (;) from extension=sockets.

提交回复
热议问题