【正文】
基于 PHP 微信平臺(tái)的二維碼應(yīng)用 THE APPLACATION OF QR CODE BASED ON THEWE CHAT WHIH PHP 摘 要 移動(dòng)互聯(lián)網(wǎng)以及智能手機(jī)的飛速發(fā)展,移動(dòng)網(wǎng)民在整體網(wǎng)民內(nèi)所占的比例越來(lái)越大。智能手機(jī)的普及率在中國(guó)已經(jīng)達(dá)到 35%,國(guó)民工作生活基本已經(jīng)離不開(kāi)智能手機(jī)。微信作為智能手機(jī)的應(yīng)用中最受大眾喜歡的即時(shí)通訊軟件,借助微信公眾號(hào)的出現(xiàn),通過(guò)微信推廣營(yíng)銷(xiāo),已經(jīng)成為互聯(lián)網(wǎng)時(shí)代的趨勢(shì)。二維碼作為公司商家與顧客連接的紐帶,越來(lái)越受到大眾的歡迎,二維碼的 應(yīng)用越來(lái)越廣泛,普及率也越來(lái)越多。 針對(duì)微信公眾號(hào)的訂閱,基本上都是采用掃描二維碼的形式,由于微信本身安全性的限制,微信后臺(tái)會(huì)給到一個(gè)生成帶參數(shù)的二維碼的接口,供開(kāi)發(fā)者根據(jù)不同的場(chǎng)景需求生成帶參的二維碼,包括設(shè)置不同的 logo,生成臨時(shí)或者永久二維碼,方便市場(chǎng)人員的開(kāi)展活動(dòng)。根據(jù)微信后臺(tái)的需求,需要使用 PHP 環(huán)境開(kāi)發(fā)。將編寫(xiě)的的二維碼向服務(wù)器發(fā)送 HTTP 請(qǐng)求生成二維碼。 由于微信后臺(tái)基本可以滿足前期 APP 所有的功能,順應(yīng)時(shí)代趨勢(shì),企業(yè)越來(lái)越重視微信后臺(tái)的開(kāi)發(fā),加大開(kāi)發(fā)的投入。會(huì)有越來(lái)越多的伙伴投身微信后臺(tái)的 開(kāi)發(fā),加入 PHP 的行列。 關(guān)鍵詞 : 移動(dòng) 互聯(lián)網(wǎng); 微信; 二維碼; PHP ABSTRACT The rapid development of mobile Inter and smart phones, mobile Inter users in the proportion of Inter users is growing. Smartphone peration in China has reached 35%, the national working life has basically been inseparable from the smartphone. Micro letter as a smartphone app like most public instant messaging software, with the emergence of microchannel public number, through the promotion of microchannel marketing has bee the trend of the Inter age. Twodimensional code as a link between the pany39。s businesses and customers to connect more and more weled by the general public, twodimensional code more widely, more and more popularity. Subscribe for public microchannel number, basically in the form of twodimensional code scanning, since the microchannel limit itself to security, microchannel will give back to the interface with a parameter generated twodimensional code, for developers based on different scenarios demand generation of twodimensional code with parameters, including setting a different logo, twodimensional code is generated temporarily or permanently, to facilitate the activities of the market staff. According to the needs of microchannel background, you need to use PHP development environment. The twodimensional code will be prepared to send HTTP requests to the server to generate twodimensional code. Since micro letter backstage to meet the basic functions of all preAPP, ply with the trend of the times, more and more attention to the development of micro enterprises believe the background, increase development investment. More and more developers to join the micro letter backstage partner, joined the ranks of PHP. Key words: Inter。 WeChat。 QR code。 PHP 目 錄 第一章 緒論 .................................................................................................................... 1 第一節(jié) 互聯(lián)網(wǎng)的發(fā)展 ............................................................................................... 1 第 二節(jié) 微信的現(xiàn)狀 ................................................................................................... 3 第 三節(jié) 智能手機(jī)的發(fā)展 ............................................................................................ 4 第 四節(jié) 二維碼的發(fā)展與網(wǎng)絡(luò)的關(guān)系 .......................................................................... 5 第五節(jié) 本論文研究?jī)?nèi)容 ............................................................................................ 8 第二章 二維碼的發(fā)展及應(yīng)用 ............................................................................................ 9 第 一節(jié) 二維碼介紹 ................................................................................................... 9 第 二節(jié) 二維碼的特性 ............................................................................................... 9 第 三節(jié) 二維碼編碼原理 .......................................................................................... 10 第四節(jié) 二維碼的應(yīng)用 ............................................................................................. 11 第五節(jié) 二維碼的安全防范 ...................................................................................... 16 第三章 PHP語(yǔ)言 ............................................................................................................. 16 第 一節(jié) PHP 語(yǔ)言的介紹 .......................................................................................... 16 第 二節(jié) 為什么要使用 PHP ...................................................................................... 17 第 三節(jié) PHP 是怎么工作的 ...................................................................................... 19 第 四節(jié) php 環(huán)境的搭建 ........................................................................................... 21 第 四章 服務(wù)請(qǐng)求 ........................................................................................................... 22 第 一節(jié) 瀏覽器工作方式 .......................................................................................... 22 第 二節(jié) HTTP 介紹 .................................................................................................. 22 第 三節(jié) Http 協(xié)議的詳解 .......................................................................................... 23 第四節(jié) HTTP 協(xié)議如何工作 .................................................................................... 24 第 五節(jié) HTTP URL .................................................................................................. 24 第 六節(jié) 微信使用的是 C/S 架構(gòu) ............................................................................... 24 第五章 二維碼生成 ........................................................................................................ 25 第 一節(jié) 普通二維碼生成 .......................................................................................... 25 第二節(jié) 利用 PHP 生成微信二維碼 ........................................................................... 27 第六章 總結(jié) .................................................................................................................. 32 參考文獻(xiàn) ........................................................................................................................ 33 致 謝 ........................................................................................................................... 35 附 錄 ........................................................................................................................... 36 2