You don't. That would be unnecessarily hard!
| SitePoint Sponsor |




You don't. That would be unnecessarily hard!
MySQL v5.1.58
PHP v5.3.6
Pear is all PHP, and the client machine won't need to install any software
Jake Arkinstall
"Sometimes you don't need to reinvent the wheel;
Sometimes its enough to make that wheel more rounded"-Molona

the barcode i scanned for you in your other post is not Code 128, it's EAN128. those two barcodes are completely different.
If you had looked at one of the other 3 threads you made, you would see that he ran it through his barcode reader.
Jake Arkinstall
"Sometimes you don't need to reinvent the wheel;
Sometimes its enough to make that wheel more rounded"-Molona


threads merged
please do not start multiple threads on the same topic


How do I create scannable Bar Codes, Using PHP, CSS, and 1 x 1 Pixel Images, for the black and white bars?
Example Bar Code: http://www.freewebs.com/ticstacs/Barcode.bmp
Many Thanks, Much Appreciated!!!

the barcode scanner i have at work has mode that tells you the type of barcode when you scan it. i printed the barcode you posted earlier and scanned it.
no matter how many times you ask this same question, you're going to get the same answer: look at one of the pre-built barcode classes and write your code based on that. if you ask again, i'm going to ask that the thread be locked and all future threads you start on the subject be deleted.
we're here to help you learn how to program, and help you through the rough spots, not do the whole thing for you. if that's what you're looking for, start a post in the "looking to hire" forum and pay someone to do it.


My Appologies, only I don't seem to be getting anywhere.
How do I get hold of these classes?![]()
Read this http://pear.php.net/manual/en/introduction.php
it will explain everything.

or simply download the gzip file for image_barcode and look at the php file. ignoring all the class stuff, image_barcode is a fairly simple piece of code.


If you don't want to download the package you can look at the online documentation http://pear.php.net/package/Image_Barcode/docs/latest/
-> Files, to choose a file, then
-> Filesource, to see the source code
If you want to have an "image" made up of smaller 1px images, you could use the PEAR package code to write your "convert number to bits" code, and then use those bits to determine which 1px image to use.
Nothing personal, I myself have "re-invented the wheel" just for the fun of the learning experience, but I would not count on others on being so keen on it. It's more of a solo adventure.


What actually is pear, what does it do?
READ http://pear.php.net/manual/en/introduction.php
Forgive the shouting...![]()
Bookmarks