How PHP implements unsolicited messages to the terminal

Source: Internet
Author: User
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
.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.