Top "Php-socket" questions

PHP comes with a very capable socket programming API.

How to enable Socket in PHP 5.3.10 on Ubuntu 12.04 System

I am trying to enable Socket in PHP on linux. I checked php.ini but in that file not getting …

php php-socket
fsockopen() how does it actually work?

I am trying to develop a code judge software in PHP for programming assignments. I would try o compile codes …

php sockets fsockopen php-socket
How to read and write to php socket in one program?

Here I wish to pass a message from client to server and write a response back to the client through …

php html sockets php-socket
HTTP pipelining request text example

Below is an example HTTP 1.1 call with a single page requested : GET /jq.js HTTP/1.1 Host: 127.0.0.1 Accept: */* I understand with …

apache http-request http-1.1 php-socket
How to connect telnet and send command and write output into text file using php

i need to telnet to a port and send command and write the output into a txt file using PHP.…

php php-socket
How to send and receive messages through a PHP socket in the same program

I have written a simple socket program to send a message from client to server. That works fine and I …

php php-socket
php stream_get_contents hangs at the end of the stream

Solution at the end of the question I am writing a PHP application that sends a message to a server …

php sockets stream php-socket php-stream-wrappers
Connecting to a ratchet websocket server using PHP

I am running a Ratchet WebSocketServer in my backend this is all working fine. <?php require '../vendor/autoload.…

php sockets websocket ratchet php-socket
PHP Sockets with SSL / TLS - no suitable shared cipher could be used

I am attempting to create a server and client using PHP Sockets with SSL / TLS. However, when sending data to …

ssl client-server php-7 tls1.2 php-socket
Unable to connect to a non-blocking socket

This makes me nuts. I have to create a very simple non-blocking socket script in php 5.3 where a client connects …

php sockets php-socket