PHP and jquery generate QR codes, and PHP generates electronic business cards

Source: Internet
Author: User

Since the job-hopping, did not send a blog, very guilty, I am self-taught PHP, now this company plus the boss only 12 people, I am typical of the company from a clear division of labor to small companies, deep understanding of the so-called ' big company ' and ' The difference between a small company ', the previous company, a project to my here, static pages are written well, I just need to load the data dynamically on the line, but at present this company, a typical person when a few people use, I just went to the company for one months, directly let me do the project manager's work, to party a company needs research, and then develop, except design and transduction Participation. Exercise people to tell the truth or small company better, but the exercise technology I think the big company is better, because I spent 3 months in my last company, obviously feel that my technical ability has been improved, but at present this small company, I just think I look at the project vision has changed, as for the technical not that feeling. It's just my feeling, and maybe it's wrong.

PHP generates two-dimensional code:

First download QRCode plug-in, this plugin everyone Baidu download, and then use the following method can be generated on the Web page QR code, and in the current directory to generate a corresponding QR code image.

Note here that the PNG method here has a bug: The last parameter of this method is a Boolean type, but regardless of whether you pass any arguments, it is false because of the error inside, as for the reason I believe you see the method to know.

The solution is: find this method and modify it to look like this:

//----------------------------------------------------------------------
public static function png ($text, $outfile = False, $level = qr_eclevel_l, $size = 3, $margin = 4, $saveandprint =false)
{
$enc = Qrencode::factory ($level, $size, $margin);
Return $enc->encodepng ($text, $outfile, $saveandprint);
}

jquery generates two-dimensional code:

The front-end can generate two-dimensional code, the use of jquery.qrcode.js to achieve, the principle of the same, but also very simple here I do not explain more.

Http://www.cnblogs.com/xcsn/archive/2013/08/14/3258035.html If there is not clear, you can click this view.

PHP generates Electronic Business cards:

Electronic Business cards are in an international format, just as you can make rules together.

Using this method to generate the QR code, the use of mobile phone scanning can be directly in the contact to add, (my current use of the Mac, can be achieved).

PHP and jquery generate QR codes, and PHP generates electronic business cards

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.