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
Tag: sockets
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
Why does my TCP connection not provide a response to a message when it works OK in netcat (nc) and telnet?
I am trying to send a message to a socket and read the response back in either PHP or Python. I have tried Telneting into the IP/Port and manually sending a command/receiving a response to verify the server is operating as expected. I have also tried connecting using nc (netcat) and that also works fine. In both cases I get
Digest Auth Socket Server to Server
How can I realize digest authentication and subscription with sockets in a Server to Server application with PHP. What options do I have?
Reading from weight scale problems (PHP)
I’m new in php. For now I can read the code (not good), and can write a little bit. I have several weight scales. From first one I can read the weight with this script: // host and port to …
PHP cURL/Socket and HTTP authentication
I have a webpage with a list of HTML links for images in a protected subfolder. This folder is protected via .htaccess and HTTP authentication. Is there a way to use cURL/Socket, or something like …