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
Did you ever get this solved? I am having the same porblem
It might be because the wrong headers are being sent to the browser. Add header('Content-Type: image/png'); above QRcode::png
It may be and issue with the permissions of the "temp" directory, try changing it to 777 and see if that helps?
Log in to post a comment.
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
Did you ever get this solved? I am having the same porblem
It might be because the wrong headers are being sent to the browser. Add header('Content-Type: image/png'); above QRcode::png
It may be and issue with the permissions of the "temp" directory, try changing it to 777 and see if that helps?