我正在使用此库生成http://phpqrcode.sourceforge.net/ QR码。
我正在尝试使用以下行1在同一页面上显示两个条形码
QRcode::png('My Name');
QRcode::png($codeText);
我的问题:
完整代码;
include('phpqrcode/qrlib.php');
//output image directly into browser, as PNG stream
QRcode::png('My Name');
//******************************************************************************************
$param = $_GET['id'];
//make sure script does not output anything!!! Otherwise it will break up PNG binary
ob_start("callback");
$codeText = 'New Fashion Shop '. $param;
$debugLog = ob_get_contents();
ob_end_clean();
QRcode::png($codeText);
//******************************************************************************************