FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » QR Code>/phpqrcode/qrlib.php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
QR Code>/phpqrcode/qrlib.php [message #180154] Wed, 16 January 2013 07:56 Go to next message
budatlitho is currently offline  budatlitho
Messages: 4
Registered: December 2012
Karma: 0
Junior Member
Hi:
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:
QRcode::png('BEGIN:VCARD\r\n
VERSION:3.0\r\n
N:Gump;Forrest\r\n
FN:Forrest Gump\r\n
TEL;WORK;VOICE:(111) 555-1212\r\n
TEL;HOME;VOICE:(404) 555-1212\r\n
REV:20130116T195243Z\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?
TIA
Re: QR Code>/phpqrcode/qrlib.php [message #180155 is a reply to message #180154] Wed, 16 January 2013 11:17 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 1/16/2013 2:56 AM, Bud Nusly wrote:
> Hi:
> 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:
> QRcode::png('BEGIN:VCARD\r\n
> VERSION:3.0\r\n
> N:Gump;Forrest\r\n
> FN:Forrest Gump\r\n
> TEL;WORK;VOICE:(111) 555-1212\r\n
> TEL;HOME;VOICE:(404) 555-1212\r\n
> REV:20130116T195243Z\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?
> TIA
>

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.
jstucklex(at)attglobal(dot)net
==================
Re: QR Code>/phpqrcode/qrlib.php [message #180157 is a reply to message #180154] Wed, 16 January 2013 15:27 Go to previous messageGo to next message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma: 0
Senior Member
Am 16.01.2013 08:56, schrieb Bud Nusly:

> Hi:
> 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:
> QRcode::png('BEGIN:VCARD\r\n
> VERSION:3.0\r\n
> N:Gump;Forrest\r\n
> FN:Forrest Gump\r\n
> TEL;WORK;VOICE:(111) 555-1212\r\n
> TEL;HOME;VOICE:(404) 555-1212\r\n
> REV:20130116T195243Z\r\n
> END:VCARD', 'promo/QR/test.png');

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:

QRcode::png("BEGIN:VCARD\r\n".
"VERSION:3.0\r\n".
"N:Gump;Forrest\r\n".
"FN:Forrest Gump\r\n".
"TEL;WORK;VOICE:(111) 555-1212\r\n".
"TEL;HOME;VOICE:(404) 555-1212\r\n".
"REV:20130116T195243Z\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"

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

> Any pointers?

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


--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
Re: QR Code>/phpqrcode/qrlib.php [message #180158 is a reply to message #180154] Wed, 16 January 2013 15:48 Go to previous message
budatlitho is currently offline  budatlitho
Messages: 4
Registered: December 2012
Karma: 0
Junior Member
On Wednesday, January 16, 2013 2:56:44 AM UTC-5, Bud Nusly wrote:
> Hi:
>
> 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:
>
> QRcode::png('BEGIN:VCARD\r\n
>
> VERSION:3.0\r\n
>
> N:Gump;Forrest\r\n
>
> FN:Forrest Gump\r\n
>
> TEL;WORK;VOICE:(111) 555-1212\r\n
>
> TEL;HOME;VOICE:(404) 555-1212\r\n
>
> REV:20130116T195243Z\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?
>
> TIA

THANK YOU, Arno! Solved my problem. :-))
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: POST data being truncated at "
Next Topic: Problem with webservice call: org.xml.sax.SAXException
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Jun 05 00:03:19 GMT 2024

Total time taken to generate the page: 0.02656 seconds