If the data is obtained by the serial device, how to read the data information obtained by the serial device using PHP? Ask you.
Reply to discussion (solution)
Can ah, you use the application to monitor the serial port, get the data generated files, read files in PHP can be OH.
It is not clear what function to use now.
Please describe your application scenario.
Please describe your application scenario.
The product information is read out through the scanner, and then the data is accessed into the database. Because the scanner is a serial port, only through the Win XP HyperTerminal to connect to get data, the purpose of the request is to scan the product information, through the program can directly on similar text files directly read the data. Does PHP implement this feature? Or do you want to invoke another program? (currently known vb,c# can read the data directly)
Get data information once, the program determines whether to store, page refresh once.
You have to understand one thing: PHP works on the server side, then you are going to use PHP to read the serial port on the server?
You have a "page refresh" in your description, which is obviously not working on the server.
Since it's not, PHP is powerless.
Although PHP can be run on the client side in a command-line manner (of course, the client also needs to install PHP), but there is no user interface. The control is very inconvenient. Generally not as an alternative
Understand. Thank!
Do you realize reading the serial port with PHP? Trouble with the help? Thanks, man. qq379273045