PHP產生電子名片(QRCode)

來源:互聯網
上載者:User

標籤:php

<?php//引入 phpqrcode 類庫//phpqrcode:https://github.com/t0k4rt/phpqrcoderequire_once "phpqrcode/qrlib.php";//拼接內容$content = "BEGIN:VCARD" . "\n";//開始$content .= "VERSION:2.1" . "\n";//版本$content .= "N:張" . "\n";//姓$content .= "FN:三" . "\n";//名$content .= "ORG:51CTO" . "\n";//組織名稱$content .= "TEL;WORK;VOICE:1234567" . "\n";//公司電話$content .= "TEL;HOME;VOICE:12345678" . "\n";//家庭電話$content .= "TEL;TYPE=cell:12345678901" . "\n";//行動電話$content .= "ADR;HOME:;;德外大街;西城區;北京市;433330;中國" . "\n";//家庭住址$content .= "EMAIL:[email protected]" . "\n";//郵箱$content .= "URL:https://www.baidu.com" . "\n"; //個人首頁$content .= "END:VCARD";//結束//輸出二維碼QRcode::png($content);?>


產生的二維碼

650) this.width=650;" src="https://s2.51cto.com/wyfs02/M01/9E/41/wKiom1mNVTbSvuJIAAAIdPnwn00864.png" title="產生的二維碼" alt="wKiom1mNVTbSvuJIAAAIdPnwn00864.png" />



掃描出的資訊

650) this.width=650;" src="https://s2.51cto.com/wyfs02/M00/9E/42/wKiom1mNV9GTtaMlAAJUdfiCeiQ123.jpg" title="Screenshot_2017-08-11-15-05-39.jpg" width="350" height="673" border="0" hspace="0" vspace="0" style="width:350px;height:673px;" alt="wKiom1mNVXbBLmXYAAJUeGtTcH8339.jpg" />

本文出自 “佟鑫的部落格” 部落格,請務必保留此出處http://tong707.blog.51cto.com/12527988/1955464

PHP產生電子名片(QRCode)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.