Barcoding feature in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
carsky
Forum Commoner
Posts: 30
Joined: Sun Jul 08, 2007 3:26 am

Barcoding feature in PHP

Post 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.
wildwobby
Forum Commoner
Posts: 66
Joined: Sat Jul 01, 2006 8:35 pm

Re: Barcoding feature in PHP

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
TheMoose
Forum Contributor
Posts: 351
Joined: Tue May 23, 2006 10:42 am

Post 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.
Post Reply