How to generate barcode as image and save on my server?

2

I'm creating a landing page where the user signs up and will be generated a bar code that is sent via email to the user on a discount coupon, barcode.inc.php to generate the barcode image, I need to save that image on my server to use when sending the email, how could I do that?

Here's my code:

require_once('barcode.inc.php'); 
$code_number = '125689365472365458';//125689365472365458 
new barCodeGenrator($code_number,0,'hello.gif', 190, 130, true);
    
asked by anonymous 12.05.2016 / 16:44

1 answer

0

You can generate the image, upload to a folder on your server, and save only the image link in the database. I hope I have helped!

    
16.02.2017 / 16:37