首先下载类库包 地址:http://phpqrcode.sourceforge.net/下载:http://sourceforge.net/projects/phpqrcode/
<? include "./phpqrcode/phpqrcode.php"; $value="http://www.75271.com"; $errorCorrectionLevel = "L"; $matrixPointSize = "4"; QRcode::png($value, false, $errorCorrectionLevel, $matrixPointSize); exit; ?>