21,887
社区成员
发帖
与我相关
我的任务
分享
<?php
//引入phpqrcode库文件
include('phpqrcode.php');
// 二维码数据
$data = 'http://www.baidu.com';
// 生成的文件名
$filename = 'baidu.png';
// 纠错级别:L、M、Q、H
$errorCorrectionLevel = 'L';
// 点的大小:1到10
$matrixPointSize = 4;
//创建一个二维码文件
QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
//输入二维码到浏览器
QRcode::png($data);
<?php
//引入phpqrcode库文件
include('phpqrcode.php');
// 二维码数据
$data = 'http://www.baidu.com';
// 生成的文件名
$filename = 'baidu.png';
// 纠错级别:L、M、Q、H
$errorCorrectionLevel = 'L';
// 点的大小:1到10
$matrixPointSize = 4;
//创建一个二维码文件
QRcode::png($data, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
//输入二维码到浏览器
QRcode::png($data);