Php learning notes --- PHP generates a QR code business card and adds the business card content to the contact ---------------------------------- 1. after testing, the QR code is generated, and the screen displayed after scanning & nbsp;. for example, if you use qq to scan the information, you can directly add it to the contact. This should be done after qq scans the QR code, & nbsp; B. if you use a forward and backward scan, only the scanned content corresponds to the php learning notes-PHP generates a QR code business card and adds the business card content to the contact.
------------------------------------
1. tested, generated the QR code, and scanned the images.
A. For example, if you use qq to scan the information, you can directly add it to the contact. This should be done after qq scans the QR code,
B. If scanning is performed, only the corresponding text information is scanned and not processed. The Contact Software of the mobile phone system cannot be called.
2. Business card code:
Php generates business cards:
$ Vname = 'test ';
$ Vtel = '000000 ';
GenerateQRfromGoogle ($ vname, $ vtel );
Function generateQRfromGoogle ($ vname, $ vtel, $ widhtHeight = '000000', $ EC_level = 'l', $ margin = '0 ')
{
If ($ vname & $ vtel ){
$ Chlorophyll = "BEGIN: VCARD \ nVERSION: 3.0". // vcard header information
"\ NFN: $ vname ".
"\ NTEL: $ vtel ".
"\ NEND: VCARD"; // vcard tail information
Echo '';
}
}
?>
Php generates the url qr code:
$ Url = "http://www.google.com.hk ";
GenerateQRfromGoogle ($ url );
Function generateQRfromGoogle ($ chlorophyll, $ widhtHeight = '000000', $ EC_level = 'l', $ margin = '0 ')
{
Echo '';
}
?>
------------------------------------------------------------------------