B
B
Bogdan Fil2015-09-11 10:50:36
PHP
Bogdan Fil, 2015-09-11 10:50:36

How to listen on a port using apache?

I have Apache configured to listen on port 20202.
The index.php file is run by default.
This port receives tcp traffic.
How can it be accepted with php.
That is, as I see it:
1. The remote device sends data to my server on port 20202.
2. When data arrives at this port, the index.php file is launched.
3. The file receives data from the tcp port in string format, processes it and writes it to the database.
The problem is with getting data from the tcp port.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
ShamblerR, 2015-09-14
@ShamblerR

telnet- вывод передаете в php

Виктор Таран, 2019-07-26
@shambler81

Как получить данные, передаваемые на TCP порт с помощью PHP?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question