Question:
php barcode generator + image export?
?
2009-08-11 12:11:05 UTC
For serveral Reasons, I am wanting to have a barcode image generator.

It basicly generates a valid barcode and makes 1 image out of it.

I have found such generator, such as this one:
http://www.phphulp.nl/php/scripts/9/88/ (dutch btw)
sample of that code: http://www.nieko.net/tools/barcode.php

I dun really care if those are valid barcodes, but this is what I want.

My aim is to convert this form into a function, and then save the barcode image, without displaying it.

basicly, in the end, I want to have an function like:
createbarcodeimage($barcode,$coding,$override,$dispcod);

Unfortunately, I lack the skills on this area. ( creating/motifying images, saving/exporting them )

how do I export an generated Image without displaying it like in the sample?

Tutorials are not appriciated though.
Three answers:
Kasey C
2009-08-11 12:42:33 UTC
From initial appearance those barcodes are valid, but I don't see much "validation routine" in the function.



Question here is... What do you mean by Exporting / Saving? Do you want to browser to get a pop-up that says "save as..."? To do that, you pretty much just change the type. Instead of IMAGE/PNG, you do MIMEType of binary or something similar and it should automatically pop up a "save as".



EDIT: Okay, that makes more sense. That code given WILL generate barcodes, no external generator needed. However, I have to admit I am NOT that good at PHP to make it actually SAVE the content on YOUR server.



And there are easier ways of generating barcodes than with PHP, IMHO. Personally, if I need to make some generic barcodes, I'd just use Code 3of9, which you can find free fonts out there, and it's a very simple symbology: just put * in front and in back, and upper-case string in between, that's it. No need to generate any image at all, but then, I don't know what you're trying to do, so I can't comment on your attempt solution, as I don't know what problem you're trying to solve.
anonymous
2016-12-13 13:15:29 UTC
Php Barcode Image Generator
anonymous
2013-10-05 13:22:25 UTC
God gave you like a shield so that demons don't harm you, but when you sin or do something spiritually wrong, you open yourself up to demonic influence. For example, chanting mantras leads to demon possession. It's not the words that get you possessed; it's the rhythm. Buddhists worship fake mountain Kailash in Tibet inside which demons have a UFO base. Barcode is Druid black magic curse. Mediums are shown pictures and given thoughts by demons. Demons move the Ouija board. Demons=Ghosts=Spirit Guides=Aliens. Demons never do good. Demons fly in UFOs. Crystal balls, tarot cards, barcodes, tattoos, talismans, masks, skulls, amulets, etc. attract demons. Meditation, chanting mantras, and astral projection lead to demon possession. Casting spells is asking demons for help. Ask Greek Orthodox priest to help you out (blessing your house, etc.) Most dreams and thoughts are from demons. To break any curse, pray slowly the Psalm "the Lord is my light and my salvation" 40 times a day for 40 straight days. That's 1600 times in total. Also, if you're in any trouble (like sleep paralysis), scream: JESUS ! Jesus will come back to end the flying antichrist's rule when this antichrist conceives a thought in his evil mind that he 666-isotope-ray-lasered everyone. Antichrist's minions came up with Dec. 21 in order to desensitize people to the real events predicted in the Bible. Antichrist is 0% God and 100% man. He's possessed by Satan since he's 12 years old. He flies. He wears gloves to hide long nails. He's pale with red eyes. He's surrounded by demons who appear as angels of light. 666ed people go to permanent hell. 666 is given by lasers (isotope rays) on wrist or forehead when people stretch hands to receive small plastic grey card (world passport). Reject 666. Don't go into a UFO to be healed by demons. Those who reject 666 will go to heaven. Also, their direct ancestors will be saved from hell. Dinosaurs live under our level. They will get out through sinkholes and lakes. To kill them, go for their nerves. Again, 666 is given by isotope rays on wrist or forehead when people stretch hands to receive small plastic grey card (world passport). Police will chip and isotope ray people on highways. Food stores will isotope ray people too. Antichrist will also release prisoners to mark people. Reject 666 at all cost. If you're about to be marked, scream: "Lord, have mercy!" three times. Go hide with Orthodox Christians to escape 666. After death, 3 days you here, then you're shown hell and heaven from 3rd until 9th day after death, then from 9th until 40th day demons accuse you of sins; that was before, now people just straight out go to temporary hell because of Social Security; but 666ed people go to permanent hell right away; 666 is given when people stretch hands to accept the evil plastic card. Before Jesus preached in hell, all people (except Enoch and Elijah) went to hell. Now, aborted kids go to hell for 33 and a half years. After crucifiction, Jesus preached in hell. Those who believed, got out of hell. Suicide leads to hell. Maximum torture is at the bottom (ice hell) for biggest sinners. Stalin is head in boiling water. When he tries to get out, demons push him back in. Others stand up to knees or up to chest in boiling water. There are different punishments in hell. If you didn't do anything bad, you're in a dark room. Also, hell is not permanent now. So, it's possible to get out, especially if you're prayed for and your relatives give to charity in the name of Archangel Michael. http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&eotf=1&u=http%3A%2F%2Fwww.gitie.ru%2FRaznoe%2FMitarstva.html&act=url http://fatheralexander.org/booklets/english/life_after_death.htm http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2F3rm.info%2F28475-molitva-za-usopshih-na-arhangela-mihaila-19-sentyabrya-i-21-noyabrya-apostol-ioann-bogoslov-i-igumen-guriy.html&act=url


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...