How PHP implements unsolicited messages to the terminal
Now there is an application scenario, there is a PHP to do background information release system control, used to control the outdoor information publishing terminal (advertising machine, outdoor display, etc.), when the customer click on the browser page restart, switch machine or do other operations, how can I send this information to the terminal?
See some of the way to push, or foggy, a lot of the terminal is to send a request before, which heroes can be pointed out?
------Solution--------------------
Reference:
terminal is advertising machine, outdoor screen these things.
If the use of HTTP can not be done, it is possible to consider using the socket, PHP on the use of the socket to actively send information to how to do it?
Reference:
How can I send this message to the terminal when the customer clicks on the browser page to restart, switch the machine or do other actions?
This depends on your display type, if you can connect with the socket, connect with the socket
Yes, this depends on your "advertising machine, outdoor screen" how these are connected to your PHP server.
PHP has a socket library, but there are many other ways, not necessarily need
------Solution--------------------
I would definitely not do it with PHP, if I had to. PHP can be used as a foreground, and then write a server side to receive PHP input data to control. or directly develop the server side and the client, throw away PHP.
Perhaps PHP is fixed, you can also be in the front end and your back end (advertising machine) to set up PHP to pass the data Oh, the advertising machine is actually a win operating system. Simple direct post get processing this is much easier ... The event is processed into a bat file to invoke ...
Reference:
7 floor is there any good advice?
Reference:
The crux of the matter is that only half-tone PHP is engaged in this project
.