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!
robertybobAsked:
Who is Participating?
 
gruntarConnect With a Mentor Commented:
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
 
ldbkuttyCommented:
I dont have any experience, but see if this open source is helpful: http://www.ashberg.de/php-barcode/index.php
0
 
dougdayConnect With a Mentor Commented:
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
 
iamanindianConnect With a Mentor Commented:
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 AhujaTechnology DeveloperCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.