Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to save image to folder ? #5

Open
franciscocorrales opened this issue Apr 20, 2015 · 4 comments
Open

How to save image to folder ? #5

franciscocorrales opened this issue Apr 20, 2015 · 4 comments

Comments

@franciscocorrales
Copy link

How about, if we need the image to keep in disc, in some folder, so we can later get a reference to it ?

Thanks.

@bendubuisson
Copy link

@moradrouaguy
Copy link

You have just to add this line a the end of the barcode.php file before to destroy the image :

imagepng($image, "../images/theimage.png");

@ankit893
Copy link

ankit893 commented Jan 3, 2017

we attach two file in php
In barcode file
bottom of code we assign a code to insert a barcode image in database but process is not done please help me how can save data in folder and database to same name

@leoalv
Copy link

leoalv commented Nov 8, 2019

Save your image from php and load in html

$url = 'https://yourweb.com/barcode.php?filepath=YOURFOLDER/IMAGE_NAME.png&text=YOUR_CODE_HERE&print=true';
$save_image = get_headers($url); // when get headers visit your url, barcode create and save image

<!-- load created image in html -->
<img src="YOURFOLDER/IMAGE_NAME.png"/>

You not need modify barcode.php. Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants