-3
在代碼中,我有一個值字符串作爲測試,並且我在掃描qr-code後得到一個輸出。我想將該qr-code圖像存儲在一個文件夾中。我有一個精確的值的QR碼輸出,但我不知道如何存儲生成的圖像。我如何存儲qr代碼圖像?
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
}
您已經在此代碼中的'filename.png'下存儲了一個PNG。哪一位不工作? – iainn
['QRcode :: png($ codeContents,$ pngAbsoluteFilePath);'](http://phpqrcode.sourceforge.net/examples/index.php?example=005) – DarkBee
qr-code生成並顯示在網頁中,有沒有辦法在文件夾中找到該圖像 – anbu