barcodes

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
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

barcodes

Post by Vegan »

I was wondering if its going to be much work to say implement a bar code on a web page for a product being used

UPC is used in the US for everything, QR are used wildly for mobile users

the idea was to use a web app rather than some windows ware
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
User avatar
mecha_godzilla
Forum Contributor
Posts: 375
Joined: Wed Apr 14, 2010 4:45 pm
Location: UK

Re: barcodes

Post by mecha_godzilla »

Hi,

You can find an open source QR code library here:

http://phpqrcode.sourceforge.net/index.php

There's a form at the bottom of the page that you can use to try out the script, and judging from the code the library doesn't exactly look too taxing to use :mrgreen:

You might want to save the image to a static file if the QR code is unlikely to change very often (or at all) in case the overhead of generating the image each time proves too excessive.

There should also be plenty of bar code libraries out there as well, but they're not all free/open source so check first.

HTH,

Mecha Godzilla
User avatar
Vegan
Forum Regular
Posts: 574
Joined: Fri Sep 05, 2008 3:34 pm
Location: Victoria, BC
Contact:

Re: barcodes

Post by Vegan »

most recently I created a table for nutrition information that can be adapted to a database down the road

I have considered a database of foods that I can select from, but the data currently is in a jet database which would have to be converted
Hardcore Games™ Legendary is the Only Way to Play™
My site is powered by LAMP
Post Reply