<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教程有興趣的朋友有幫助。