Reply to Re: Barcodes [Solved]

Your name:

Reply:


Posted by Mike Smith on 04/18/05 19:24

On 4/15/05, Mike Smith <mikeosmith@gmail.com> wrote:
> I just ordered a CueCat from eBay to play with reading Barcodes. Of
> course we'll use a Symbol or some other reader when we implement this
> in production, but I thought this would be a start. There are several
> classes at phpclasses.org
> (http://www.google.com/custom?q=barcode&hl=en&lr=&ie=UTF-8&oe=ISO-8859-1&c2coff=1&client=pub-2951707118576741&cof=FORID:1%3BL:http://files.phpclasses.org/graphics/googlesearch.jpg%3BLH:50%3BLW:256%3BGL:1%3BBGC:A3C5CC%3BT:%23000000%3BLC:%230000ff%3BVLC:%23663399%3BALC:%230000ff%3BGALT:%23663399%3BGFNT:%230000ff%3BGIMP:%230000ff%3BDIV:%23222222%3BLBGC:A3C5CC%3BAH:center%3BS:http://www.phpclasses.org/search.html%3B&domains=www.phpclasses.org&sitesearch=www.phpclasses.org&start=10&sa=N)
> for generating barcodes. At this point I'm assuming a form with a text
> field with onchange="this.form.submit();" would handle reading the
> barcode and submitting it. I'm assuming we would need to have all our
> barcodes in a single format (codabar, code39, etc). Would I then need
> to store barcode data. The barcodes will be generated from unique part
> numbers so I'm thinking I can generate them (and compare them to
> input) on the fly.
>
> --
> Thanks for any help,
> Mike Smith

It turns out it's easier than I was expecting. No voodoo! I got my
CueCat (usb version) today, plugged it in (on Linux, haven't tried
Windows yet) and scanned a barcode I generated. I tried it at the
console. It type out the correct part number and sent a carriage
return!

I'm using a script to generate the barcodes (3 of 9 or Code39):
http://www.sid6581.net/cs/php-scripts/barcode/

Just foreach through an array of part #'s

foreach($array AS $val)
echo "<img src=\"barcode.php?barcode=$val\">\n"; //see barcode.php
for other GET options

There are plenty of other barcode classes and phpclasses.org, but this
does what I want. Barcoding doesn't seem quite the mystery I thought
it would be.

Thanks,
Mike

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация