dtoqa66028 2016-06-06 09:43
浏览 27

PHP在同一页面上显示两个QR码

I am using this library to generate http://phpqrcode.sourceforge.net/ QR codes.

I am trying to display two barcodes on the same page using following linesl

    QRcode::png('My Name');
    QRcode::png($codeText);

My questions:

  • Only one barcode is shown which is second one. No any error messages shown.
  • Is it possible and normal to display the text under the QR code like I have seen in barcodes in case of it is not read by a reader for some reason, so the user still can read the text below the QR code?

Full code;

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);
//******************************************************************************************
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 保护模式-系统加载-段寄存器