Home php bar code on PHP

bar code on PHP

Author

Date

Category

How to make a bar code on PHP? Namely with numbers, that is, on the site after filling out the form, an order form appears with a bar code, and each time after filling out the user’s form, the numbers in the barcode must change. Example:

 O


Answer 1, Authority 100%

Use the Barcode PHP

require_once ('class / bcgfontfile.php');
Require_ONCE ('class / bcgcolor.php');
Require_ONCE ('Class / BCGDrawing.php');
Require_once ('class / bcgcode128.barcode.php');
Header ('Content-Type: Image / PNG');
$ color_white = new bcgcolor (255, 255, 255);
$ Code = New BCGCode128 ();
$ Code- & GT; Parse ('Hello');
$ Drawing = New BCGDRAWING ('', $ color_white);
$ drawing- & gt; setbarcode ($ Code);
$ Drawing- & gt; draw ();
$ Drawing- & GT; FINISH (BCGDrawing :: img_format_png);

 Enter here a description of the image

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions