QR code is a common two-dimensional code, which is used to record data information with specific geometry on the plane. The QR principle is more complex to understand, and it takes a lot of time to deal with it yourself. PHP qr code is a PHP class library that generates a QR code. This I use for more than 1 years, did not find any problems, share to everyone.
Home Address: http://phpqrcode.sourceforge.net/, the site can directly download the source code, download and extract to the Web directory, through the Web Access, you can see the demo demo.
QR code
Data indicates the number of records to be recorded if the Utf-8 encoding is stored in Chinese, up to 984.
ECC indicates the level of error correction, the higher the error correction level, the larger the image will be generated.
L level 7% loadline can be corrected m level 15% loadline can be corrected Q level 25% loadline can be corrected H level 30% Loadline can be modified
Size represents the pixels of each black point in the picture.
Example of code invocation:
Include "qrlib.php"; QRCode::p ng ($data, $filename, $errorCorrectionLevel, $matrixPointSize, $margin); /* $data data $filename saved picture names $errorCorrectionLevel error-handling levels $matrixPointSize pixels per black point $margin White border pixels outside the picture */
QR Code detailed principle can refer to the QR Wikipedia, the Chinese version of the relatively few, the English version of the introduction is comprehensive, recommended to see the English version of
http://www.bkjia.com/PHPjc/477850.html www.bkjia.com true http://www.bkjia.com/PHPjc/477850.html techarticle QR Code is a common two-dimensional code, which is used to record data information with specific geometry on the plane. The QR principle is more complex to understand, and it is not possible to take the time to deal with it.