QR Code>/phpqrcode/qrlib.php

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm trying to use phpqrcode/qrlib.php to generate a QR for VCARD but the png
created when scanned doesn't give all the information. Here's my code:
         FN:Forrest Gump\r\n
         TEL;WORK;VOICE:(111) 555-1212\r\n
         TEL;HOME;VOICE:(404) 555-1212\r\n
         END:VCARD', 'promo/QR/test.png');

When scanned the Metadata shows "L" whereas a QR generated with an on-line
service shows "M"
Any pointers?

Re: QR Code>/phpqrcode/qrlib.php

On 1/16/2013 2:56 AM, Bud Nusly wrote:
Quoted text here. Click to load it

Yes, try the support forum for the project.  They know their code better
than anyone else, and if there is a problem, they can fix it better than
anyone else.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: QR Code>/phpqrcode/qrlib.php

Am 16.01.2013 08:56, schrieb Bud Nusly:

Quoted text here. Click to load it

Well '\n\r' does not mean "newline" literally "backslash n backslash r".
Everything in single quotes is used without any substitudion of escape
sequences or avariables. You have to use double quotes if you want to
pass CR/LF using \r\n.

Also you must not wrap a string over multiple lines with spaces in
between. So a better way:

     "FN:Forrest Gump\r\n".
     "TEL;WORK;VOICE:(111) 555-1212\r\n".
     "TEL;HOME;VOICE:(404) 555-1212\r\n".

Quoted text here. Click to load it

"L" is the ECC level. You can pass this as parameter.

Quoted text here. Click to load it

See <http://phpqrcode.sourceforge.net/ .

Arno Welzel

Re: QR Code>/phpqrcode/qrlib.php

On Wednesday, January 16, 2013 2:56:44 AM UTC-5, Bud Nusly wrote:
Quoted text here. Click to load it

THANK YOU, Arno! Solved my problem. :-))

Site Timeline