Bsports必一体育

Web Design
Mobile Internet
Brand Design
Innovative
News
Encyclopedias

使用用PHP生成二维码的几种方法

Date:2018-08-10 Aource:😘必一运动·(B-sports)官方网站 中国 Type:网站百科
Word Size:small  medium  big

1、Google开放api

$urlToEncode='//www.xiqiao.me';
generateQRfromGoogle($urlToEncode);
function generateQRfromGoogle($chl,$widhtHeight ='150',$EC_level='L',$margin='0')
{
 $url = urlencode($url);
 echo ' <img alt="QR code" src="//chart.apis.google.com/chart?
chs='.$widhtHeight.'x'.$widhtHeight.'&cht=qr&chld='.$EC_level.'|'.
$margin.'&chl='.$chl.'" widhtheight="'.$size.'" /> ';
}

2、php类库PHP QR Code

PHP QR Code is open source (LGPL) library for generating QR Code,

2-dimensional barcode. Based on libqrencode C library,

provides API for creating QR Code barcode images (PNG, JPEG thanks to GD2).

Implemented purely in PHP, with no external dependencies (except GD2 if needed).

信息来源😘必一运动·(B-sports)官方网站 中国昌平区网站制作,昌平区网站设计,昌平区网站建设公司



Please contact our consultant

+86 10-60259772

Please provide your contact number. The project manager of shangpin China will contact you as soon as possible.

⚡九游体育(NineGame Sports)官方网站 zoty中欧体育kok官网@zoty体育 zoty中欧体育-平台登录 台北外送茶 EMC易倍体育官方 外送茶