Php learning notes-PHP generates a QR code name extension and adds the business card content to the contact

Source: Internet
Author: User
Tags vcard
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 '';
}
?>
------------------------------------------------------------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.