中山php|最優(yōu)網(wǎng)絡(luò) :中山做網(wǎng)站 中山php建站
最優(yōu)良人
Posts Tagged With: 二維碼
php生成二維碼
2012/02/08 at 14:28 » Comments (20)
php生成二維碼可以有以下幾種方式 1.google開(kāi)放api $urlToEncode="http://bbs.lewanchina.com"; generateQRfromGoogle($urlToEncode); function generateQRfromGoogle($chl,$widhtHeight ='150',$EC_level='L',$margin='0') { $url = urlencode($url); echo '<img src="http://chart.apis.google.com/chart?chs='.$widhtHeight.'x'.$widhtHeight.'&cht=qr&chld='.$EC_level.'|'.$margin.'&chl='.$chl.'" alt="QR code" widhtHeight="'.$size.'" widhtHeight="'.$size.'"/>'; } 2.php類(lèi)庫(kù)PHP QR Code PHP QR Code is open source (LGPL) library for generating QR Code, 2-dimensional barcode. Based on ...more »