Fatal error: Call to undefined function socket_create()

后端 未结 6 734
情深已故
情深已故 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:28

    You'll need to install (or enable) the Socket PHP extension: http://www.php.net/manual/en/sockets.installation.php

提交回复
热议问题