The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

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.

source 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.