Blogger Information
Blog 14
fans 0
comment 0
visits 12038
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
phpqrcode生成动态二维码简单实例
alber1986的博客
Original
836 people have browsed it

这是一个利用phpqrcode生成动态二维码简单实例,比微信官方提供的接口还要好用。二维码是动态的,不用生成图片,可自定义二维码大小,间隙,跳转地址等。

222222.png

参数设置:

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