<span>header</span>('Content-Type: image/png'<span>); </span><span>include_once</span> 'phpqrcode/qrlib.php'<span>; </span><span>$a</span> = "http://www.play17.cn/play/wlogin.html"<span>; </span><span>ob_clean</span><span>(); QRcode</span>::png(<span>$a</span>);
加入输出类型
<span>header</span>('Content-Type: image/png');
清除缓存ob_clean()
<span>ob_clean</span>();
以上就介绍了phpqrcode不能输出二维码,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。