PHP Learning Notes---php generate two-dimensional code business cards, and add business card content to Contacts _php Tutorial

Source: Internet
Author: User
Tags vcard
------------------------------------
1. Test, QR code generation, scan after the appearance of the screen
A. For example, using QQ to scan the information can be directly added to the contact, this should be QQ scan QR code after processing,
B. If scanning, then the scanned content only the corresponding text information, not processed, can not call the phone system's contact software
2. Business Card Code:
PHP generates business cards:
$vname = ' Test ';
$vtel = ' 13800000000 ';
Generateqrfromgoogle ($vname, $vtel);

function Generateqrfromgoogle ($vname, $vtel, $widhtHeight = ' Max ', $EC _level= ' L ', $margin = ' 0 ')
{
if ($vname && $vtel) {
$chl = "begin:vcard\nversion:3.0". vcard Header information
"\NFN: $vname".
"\ntel: $vtel".
"\nend:vcard"; vcard Tail Information
Echo ';
}
}
?>
PHP generated URL qr code:

$url = "http://www.google.com.hk";
Generateqrfromgoogle ($url);

function Generateqrfromgoogle ($chl, $widhtHeight = ' Max ', $EC _level= ' L ', $margin = ' 0 ')
{
Echo ';
}
?>
------------------------------------------------------------------------

http://www.bkjia.com/PHPjc/755790.html www.bkjia.com true http://www.bkjia.com/PHPjc/755790.html techarticle ------------------------------------1. Test, QR code generation, scan after the appearance of a. For example, with QQ words scanned information, can be added directly to the contact, which should be ...

  • 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.