日期:2014-05-17  浏览次数:20427 次

通过 PHP类库 phpqrcode 生成 二维码
<?php
//phpqrcode 在下面的附件中提供下载
require_once("phpqrcode/phpqrcode.php");
$str = 'http://soundhorizon.iteye.com';
$errorCorrectionLevel = 'L';
$matrixPointSize = 3; // 图像像素比例
QRcode::png($str, false, $errorCorrectionLevel, $matrixPointSize);
exit;
?>