Questions tagged [php-socket]

PHP comes with a very capable socket programming API. These socket functions include almost everything you would need for socket-based client-server communication over TCP/IP, and can be easily deployed to build simple network applications.

More info here: https://php.net/manual/en/book.sockets.php

96 questions
0
votes
1 answer

3G + GPS shield for Arduino Tracker

i bought this shield. My project is to make a tracker using the gps and upload the data to server this is the code im using int8_t answer; int onModulePin= 2; char gps_data[100]; int counter; char aux_str[50]; char server[ ]="***.***.net";…
user1248503
  • 81
  • 1
  • 6
0
votes
2 answers

How to get a list of active network interfaces in php

So What I want is to achieve this through php standalone using socket functions- $ sudo ifconfig | cut -d " " -f1 | awk 'NF==1{print $1}' eth0 lo wlan0 I know I can do so by using system command but for that either I need to change sticky bit…
Udit Gupta
  • 3,162
  • 11
  • 43
  • 71
0
votes
2 answers

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 need to get a response from the server to client. Can I do it in a same socket program?If yes how can I do it? Here is my code for the server…
Dinithi De Silva
  • 1,142
  • 5
  • 28
  • 46
0
votes
1 answer

PHP socket, different message length between sending and receiving

I'm using a socket to transmit a compressed file, but the file size for sending are different from that of reception. This is server:
Andrea
  • 265
  • 1
  • 3
  • 13
0
votes
1 answer

PHP Socket programming to read data from MCU

Quick question, I am new to socket, so I was wondering is there a way to read data from a MCU (Atmel)? I'm running a Linux and I can connect an Atmel through RS232, or USB to my computer(server). Is there a way that I can directly read the data that…
Bobby
  • 31
  • 10
0
votes
1 answer

Unable to send array of objects via POST over socket connection in php

I am totally new to php. I had 2 pages let A.php and B.php want to run Page B while I am at Page A.For that I had created a Socket Connection and able to run The Page B but problem is that when I send an array of objects to page B.page A send only…
madan
  • 773
  • 13
  • 38
1 2 3 4 5 6
7