[英]I've got a qr code output with an exact value but I don't know how to store the generated image. How can I store a qr-code image?
在代碼中,我有一個值字符串作為測試,一旦我掃描了二維碼,我就會得到一個輸出。 我想將該二維碼圖像存儲在一個文件夾中。
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
}
你有3個選擇,
coded data text
存儲在文件或數據庫中QRcode::text($codeContents)
)QRcode::png($codeContents, $pngAbsoluteFilePath);
祝你好運!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.