• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 923
  • Last Modified:

Barcode reader into database

Looking to read a barcode via a USB or other barcode device and have the data fed into a MySQL database. Firstly, can this be done and, if so, any ideas how? Thanks!
0
robertybob
Asked:
robertybob
3 Solutions
 
ldbkuttyCommented:
I dont have any experience, but see if this open source is helpful: http://www.ashberg.de/php-barcode/index.php
0
 
gruntarCommented:
This can be done but not with webserver (PHP). You need windows app that will comunicate with USB or any other port on which barcode reader will be attached. That win app wil then store barcode data into mysql.

now when data is inserted into database you can use webserver to show/manipulate barcode data on web.

hope that helps

cheers
0
 
dougdayCommented:
Quote:
This can be done but not with webserver (PHP).

That's not actually true.  It's just very difficult.  However, if you're thinking of getting a barcode from some *other* machine than the server that is *running* PHP, then gruntar is correct -- that's not possible.  Otherwise, if you're using Unix/Linux, it's possible.  If you're using Windows, your options become slightly more limited.  Most of what you're trying to accomplish, however, will give you a *MUCH* bigger headache by trying to do it in PHP than if you could create a Windows service or some other non-scripting-language application to do what you're mentioning.

Just thought I'd clarify a bit to make sure you know what your options are.

Hope that helps,
-Doug
0
 
iamanindianCommented:
You simply need a bar-code reader device & that device generally comes with a software to transfer the data to your PC (or Server). PHP can surely generate the bar code but reading the bar-code will mean interacting with the bar-code reader i.e. device level interaction. It isn't impossible...but if I was in your place I would have simply used the software that comes with the device itself. :)

Regards
WC

PS: I will try some Googling...let us see if something comes up.
0
 
Kshitij AhujaCommented:
No comment has been added to this question in more than 21 days,so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
[Points Split {gruntar},{iamanindian} and {dougday}]

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

Kshitij Ahuja
EE Cleanup Volunteer
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now