Category : sockets

I am trying to modify this library in order to create a socket connection using proxies: https://www.codexworld.com/verify-email-address-check-if-real-exists-domain-php/ I am trying to connect to create a socket connection using a proxy $context = array(‘socket’=>array(‘bindto’=>’181.196.181.146:4145’)); $socket_context = stream_context_create($context); $this->stream = @stream_socket_client("tcp://" . $host . ":" . $this->port, $errno, $errstr,STREAM_CLIENT_CONNECT, $timeout,$socket_context); I get the proxies from this website ..

Read more

I’m getting this error while trying to access a simple phpinfo script (any php). The Apache is not able to connect to the socket file of php-fpm service (Event type module enabled) saying that the file does not exists, but it does exists and has the right permission (apparently). I found some similar questions saying ..

Read more

I am trying to understand PHP socket use for a specific scenario that I have previously used Perl to solve but would like to be able to complete the same process with PHP instead as part of a PHP project. The equipment that I am connecting to will send out data on a specific port ..

Read more

I am trying to create a live chat. Socket.io and node.js I can’t connect the user to my channel. https://domen.com:8005/socket.io/?EIO=3&transport=polling&t=NYHmcgH :failed Here is my server.js var app = require(‘express’)(); var https = require(‘https’).Server(app); var io = require(‘socket.io’)(https); var Redis = require(‘ioredis’); var redis = new Redis(); var users = []; https.listen(8005, function () { console.log(‘Listening ..

Read more

So I’m having a problem while connecting to a STOMP server using PHP. Basically When I’m testing on this tool http://jxy.me/websocket-debug-tool/ Things are working totally fine. But when I test in my PHP code, I just get that error from the socket then it closes : <?php $sock = stream_socket_client("tls://myserver:443",$e,$n,30,STREAM_CLIENT_CONNECT,stream_context_create(null)); $headers = "GET /connect HTTP/1.1" ..

Read more