Use the PHP QR code library to create a two-dimensional code with logo in the middle
Source: Internet
Author: User
Use the PHP QR code library to create a two-dimensional code with logo in the middle
Using the PHP QR code class library to create a QR code
Using an example browser output:
Include "phpqrcode/phpqrcode.php";
$value = "Http://s.bookphone.cn/chinabook/index.php/adminhtml/Croles/admin";
$errorCorrectionLevel = "L";
$matrixPointSize = "4";
QRCode::p ng ($value, False, $errorCorrectionLevel, $matrixPointSize);
Exit
?>
File output two-dimensional code
Include (' phpqrcode/phpqrcode.php ');
Two-dimensional code data
$data = ' http://s.bookphone.cn ';
The generated file name
$filename = ' 1111.png ';
Error correction level: L, M, Q, H
$errorCorrectionLevel = ' L ';
Size of point: 1 to 10
$matrixPointSize = 4;
QRCode::p ng ($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
Create a two-dimensional code with logo in the middle
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.