Blogger Information
Blog 4
fans 0
comment 0
visits 3181
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
phpqrcode生成动态二维码实例
何幼英的博客
Original
479 people have browsed it

phpqrcode是一款非常简单好用的生成动态二维码插件,二维码是动态的,不用生成图片,可自定义二维码大小,间隙,跳转地址等。

11111.jpg

核心代码:

include_once 'phpqrcode.php'; 
 
$data = 'https://www.sucaihuo.com'; 
// 纠错级别:L、M、Q、H 
$level = 'L'; 
// 点的大小:1到10,用于手机端4就可以了 
$size = 7; 
// 下面注释了把二维码图片保存到本地的代码,如果要保存图片,用$fileName替换第二个参数false 
//$path = "images/"; 
// 生成的文件名 
//$fileName = $path.$size.'.png'; 
QRcode::png($data, false, $level, $size);

本实例转自:https://www.sucaihuo.com/php/990.html 转载请注明出处。

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post