How can I obtain the scanner barcode on the PHP page when PHP is used in combination with the scanner (scanner: supermarket barcode scanning? Thank you for choosing solution ------------------ bro. do you have a look at the instruction for secondary development of the scanner? First of all, for hardware manufacturers, if they produce a product, they must be equipped with a device driver, how to install the device, and how to call it, usually the source code will be available. if you ask a question, it will be wrong, you shouldn't ask how to use php to get the PHP scanner (scanner: supermarket barcode scanning)
How can I get the barcode scanned by a scanner on the PHP page?
Thank you!
------ Solution --------------------
Let's take a look at the instruction for secondary development of the scanner?
First of all, for hardware manufacturers, if they produce a product, they must be equipped with a device driver, how to install the device, and how to call it, usually the source code will be available. if you ask a question, it will be wrong, shouldn't you ask how to use php to obtain the barcode scanned by a scanner?
There is no answer to this question. no one except the manufacturer knows the code used to obtain the barcode, and the manufacturer knows it. so he encapsulates this part of the code into a dll or another format, after the driver is installed in your system or embedded system, call the function specified in the dll to obtain the barcode.
You should have full contact with the vendor and ask how to call the dll in php after obtaining the API.
------ Solution --------------------
I have done this.
Just put the text box you want to enter the bar code into focus
Move the cursor
Then the scanner automatically enters the barcode
There will be a carriage return action later
It is equivalent to entering a bar code on the keyboard, and then pressing enter.
------ Solution --------------------
"I have done this.
Just put the text box you want to enter the bar code into focus
Move the cursor
Then the scanner automatically enters the barcode
There will be a carriage return action later
It is equivalent to entering a bar code on the keyboard, and then pressing enter"
I also use this method. it doesn't need any driver at all. it's super simple.