Barcode Images

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
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Barcode Images

Post by cyberlei »

hi guys,

I am working on a project for printing Barcode from my current PHP page, the coding side is done, but I have really hard time to finding these Code39 and Code128 barcode images, just wondering if someone can help me on this. :oops:

Thanks a lot
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Re: Barcode Images

Post by nickvd »

cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Re: Barcode Images

Post by cyberlei »


Thanks for these links pal. :) actually I want to get something like a image folder and store all the barcode images (0~9, A~z, symbols....etc)
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Barcode Images

Post by onion2k »

cyberlei wrote:Thanks for these links pal. :) actually I want to get something like a image folder and store all the barcode images (0~9, A~z, symbols....etc)
I don't think you quite realise how barcodes work.
cyberlei
Forum Commoner
Posts: 27
Joined: Tue Oct 16, 2007 6:19 pm
Location: Milpitas, CA

Re: Barcode Images

Post by cyberlei »

onion2k wrote:
cyberlei wrote:Thanks for these links pal. :) actually I want to get something like a image folder and store all the barcode images (0~9, A~z, symbols....etc)
I don't think you quite realise how barcodes work.
For the current code which how I generator the barcode on the label,

I created function and stored all the case (0~9, A~Z...etc) in code and those case (0~9, A~Z...etc) will link to a barcode image. if someone requested or scanned something like A123456789, then the function will checking the barcode image folder get the barcode images and combine together. Please advise
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Re: Barcode Images

Post by nickvd »

Well, the only problem that forsee would be that to accommodate using A-Z, a-z, 0-9 and [!@#$%^&*()] (total 72 chars) and picking 10 characters from that set, you would have to store about

3,743,906,242,624,490,000

images... unless my math is wrong, it has been a few years since i've done permutations...


3,743,906,242,624,490,000 x 6kb per image (conservative estimate) = 3.74390624262449e+18 * 6 kilobytes = 19.4839262 zettabytes
Post Reply