In the code I have a value string as a test and I am getting an output once I scan qr-code. I would like to store that qr-code image in a folder.
include 'phpqrcode/qrlib.php';
$value = "test";
if($count > 0)
{
QRcode::png('code data text', 'filename.png'); // creates file
$result = QRcode::png($values); // creates code image and outputs it
directly into browser
}
You have 3 options,
coded data text
in a file or databaseQRcode::text($codeContents)
)QRcode::png($codeContents, $pngAbsoluteFilePath);
Good luck!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.