Fatal error: Call to undefined function socket_create()

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

    For a typical XAMPP install on windows you probably have the php_sockets.dll in your C:\xampp\php\ext directory. All you got to do is go to php.ini in the C:\xampp\php directory and change the ;extension=php_sockets.dll to extension=php_sockets.dll.

提交回复
热议问题