PHP with scanning gun problems (scanning gun: Supermarket bar code scanning)

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

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.