Page 1 of 1
Barcoding feature in PHP
Posted: Mon Jul 09, 2007 8:45 pm
by carsky
hi im just curious if there is a program or application that can generate and scan barcodes..or is possible?just curious because if there is i quite interested in learning how to make this kind of application using PHP as the language..we are currently working on a project..it is an online ordering and inventory system..i guess if there is indeed a barcoding application this might help our current proposed system.
Re: Barcoding feature in PHP
Posted: Mon Jul 09, 2007 10:03 pm
by wildwobby
I'm not sure but I think you somehow need the software that the scanner uses to get the actual number format and then you can check it against a database for the product information. You need something to 'parse' the barcode into a number or something.
Posted: Mon Jul 09, 2007 10:09 pm
by Christopher
I think there are a few PHP barcode projects. For scanning, usually the scanners emulate a keyboard. So you scan into a form field. I usually try to set the focus to make scanning easier.
Posted: Mon Jul 09, 2007 10:58 pm
by Benjamin
On a linux system there would probably be a way to pipe data from a usb port or device to a php script. Never done it before but it seems possible.
Posted: Tue Jul 10, 2007 12:25 am
by TheMoose
Search for barcode OCR if you want it to read the barcode from a file. A USB scanner will default the method of scanning to be that of just as if a user typed it on the keyboard, as arborint said.
There are many fonts out there that you can use that are strictly barcode fonts, which you use is up to you, one popular one being Code 128, or 3 of 9.