Skip to content
Advertisement

Tag: sockets

Getting id of PHP 8 Socket

With the new socket instance returning from socket_create() in php 8, how do we get a numeric or unique reference to this socket in the way casting to int would work in earlier versions. This is used for many things, including connection tracking in log files and storing metadata about connections when they are passed into/return from socket_select(). Before php

php server socket & webSocket HTML5 client

what i’m trying is connect the client [webSocket] with PHP server socket my server socket will accept the socket from client, and fetch the Request headers, after receiving the Request, i sent back handshake [response] But the status for webSocket [client] is pending and never get the response JS code: and my PHP server Socket: handshake function: After sending the

Advertisement