Weird Characters

Help
2010-12-11
2013-10-23
  • Andy Jacobs
    Andy Jacobs
    2010-12-11

    Hi

    I've successfully got this working in a file on it's own where I can create a QR code based on variable passed through the URL.

    However, when I use the same piece of code on my site I just get loads of odd characters displaying like these:

    �PNG  ��� IHDR���c���c�����,����

    Can someone point me in the right direction please?

    Regards

    Andy

     
  • Tmayo
    Tmayo
    2011-11-30

    Did you ever get this solved?  I am having the same porblem

     
  • Reid Givens
    Reid Givens
    2013-10-23

    It might be because the wrong headers are being sent to the browser. Add header('Content-Type: image/png'); above QRcode::png