In the two-dimensional code widely used today, how to give yourself a two-dimensional code electronic Business card? This article will lead you to use PHP to generate their own two-dimensional code Electronic Business card.
Words don't say much, directly on the code. (used by Phpqrcode)
<?phpinclude "phpqrcode/qrlib.php"; $content = ' Begin:vcard '. " \ n "; $content. = ' version:2.1 '." \ n "; $content. = ' N: Zhang '." \ n "; $content. = ' FN: three '." \ n "; $content. = ' org:** company '." \ n "; $content. = ' TEL; work; voice:18868881111 '. " \ n "; $content. = ' TEL; HOME; voice:18868881112 '. " \ n "; $content. = ' TEL; Type=cell:18868881113 '. " \ n "; $content. = ' ADR; HOME:;; No. 10th de Wai Street; Xicheng District; Beijing; 400000; China '. " \ n "; $content. = ' email:hr@imooc.com '." \ n "; $content. = ' url:http://www.imooc.com '." \ n "; $content. = ' End:vcard '." \ n "; QRCode::p ng ($content);? >
Related recommendations:
PHP Two-dimensional code generation
PHP generates a two-dimensional code instance with logo image based on Phpqrcode
Generation of two-dimensional code using Thinkphp3.2 combined with Phpqrcode