關(guān)于我們
書(shū)單推薦
新書(shū)推薦
|
PHP網(wǎng)站開(kāi)發(fā)
本書(shū)由淺入深,全面、系統(tǒng)地介紹了PHP 網(wǎng)站開(kāi)發(fā)技術(shù),主要內(nèi)容包括PHP 環(huán)境搭建、PHP 基礎(chǔ)知識(shí)、投票系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)、內(nèi)容管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)、企業(yè)網(wǎng)站系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)。
本書(shū)一改過(guò)去計(jì)算機(jī)編程書(shū)籍枯燥、乏味的文字講解方式,結(jié)合PHP 網(wǎng)站開(kāi)發(fā)的典型案例進(jìn)行說(shuō)明,生動(dòng)、形象地再現(xiàn)了開(kāi)發(fā)PHP 網(wǎng)站所需的基礎(chǔ)知識(shí)和技術(shù),使讀者能夠輕松地掌握PHP 的應(yīng)用。
本書(shū)可以作為普通高等院校應(yīng)用型本科及高職高專計(jì)算機(jī)專業(yè)的教材,也可以作為網(wǎng)站開(kāi)發(fā)技術(shù)人員或愛(ài)好者的參考書(shū)。
前言
第1章 PHP環(huán)境搭建.....................................................................................................................1 1.1 搭建PHP 環(huán)境.....................................................................................................................1 1.1.1 AppServ——PHP 集成化安裝包...................................................................................1 1.1.2 WAMP——PHP 集成化安裝包.....................................................................................2 1.1.3 LAMP—— Linux 系統(tǒng)下的PHP 集成..........................................................................4 1.2 PHP 開(kāi)發(fā)環(huán)境的關(guān)鍵配置信息..........................................................................................8 1.2.1 Apache 服務(wù)器的基本配置............................................................................................8 1.2.2 php.ini 文件的基本配置.................................................................................................9 1.3 小結(jié).....................................................................................................................................9 第2章 PHP基礎(chǔ)知識(shí)...................................................................................................................10 2.1 Web 客戶端工作原理........................................................................................................10 2.1.1 瀏覽器工作原理...........................................................................................................10 2.1.2 HTML 工作原理...........................................................................................................10 2.1.3 JavaScript 工作原理.....................................................................................................14 2.1.4 Web 客戶端基本技術(shù)...................................................................................................16 2.2 PHP 基本語(yǔ)法....................................................................................................................18 2.2.1 PHP 簡(jiǎn)介.......................................................................................................................18 2.2.2 PHP 嵌入語(yǔ)法..............................................................................................................19 2.2.3 引用檔案語(yǔ)法...............................................................................................................19 2.2.4 程序批注.......................................................................................................................20 2.2.5 PHP 系統(tǒng)常數(shù)...............................................................................................................20 2.2.6 PHP 自定義常數(shù)...........................................................................................................21 2.2.7 數(shù)據(jù)類型與變量...........................................................................................................21 2.2.8 訪問(wèn)客戶端變量的方法...............................................................................................29 2.2.9 PHP 變量的作用域.......................................................................................................29 2.2.10 超全局變量數(shù)組.........................................................................................................30 2.2.11 運(yùn)算符.........................................................................................................................30 2.2.12 函數(shù).............................................................................................................................31 2.3 MySQL 數(shù)據(jù)庫(kù)..................................................................................................................32 2.3.1 創(chuàng)建數(shù)據(jù)庫(kù)與表...........................................................................................................32 2.3.2 MySQL 數(shù)據(jù)類型.........................................................................................................33 2.3.3 數(shù)據(jù)庫(kù)表的插入...........................................................................................................34 2.3.4 SELECT 語(yǔ)句...............................................................................................................35 2.3.5 WHERE 子句................................................................................................................35 2.3.6 ORDER BY 關(guān)鍵詞......................................................................................................35 2.3.7 UPDATE 語(yǔ)句...............................................................................................................36 V 2.3.8 刪除數(shù)據(jù)庫(kù)中的數(shù)據(jù)................................................................................................... 36 2.3.9 數(shù)據(jù)庫(kù)的ODBC .......................................................................................................... 36 2.4 小結(jié)...................................................................................................................................36 第3 章 投票系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn).................................................................................................. 37 3.1 需求分析............................................................................................................................ 37 3.1.1 需求概述......................................................................................................................37 3.1.2 功能需求......................................................................................................................37 3.1.3 系統(tǒng)模塊劃分...............................................................................................................37 3.1.4 系統(tǒng)流程圖..................................................................................................................37 3.2 系統(tǒng)數(shù)據(jù)庫(kù)的設(shè)計(jì)與實(shí)現(xiàn)................................................................................................ 38 3.2.1 數(shù)據(jù)庫(kù)的邏輯設(shè)計(jì).......................................................................................................38 3.2.2 數(shù)據(jù)庫(kù)操作腳本...........................................................................................................39 3.3 系統(tǒng)實(shí)現(xiàn)............................................................................................................................ 40 3.3.1 文件組織結(jié)構(gòu)...............................................................................................................40 3.3.2 數(shù)據(jù)庫(kù)連接程序...........................................................................................................40 3.3.3 管理員管理模塊的實(shí)現(xiàn)............................................................................................... 41 3.3.4 用戶模塊的實(shí)現(xiàn)...........................................................................................................53 3.4 系統(tǒng)測(cè)試............................................................................................................................ 61 3.5 相關(guān)技能知識(shí)點(diǎn)................................................................................................................62 3.5.1 數(shù)組.............................................................................................................................. 62 3.5.2 文件間的相互引用.......................................................................................................64 3.5.3 函數(shù).............................................................................................................................. 64 3.5.4 PHP 的數(shù)據(jù)采集..........................................................................................................67 3.5.5 會(huì)話控制......................................................................................................................68 3.5.6 PHP 動(dòng)態(tài)圖像處理......................................................................................................73 3.6 小結(jié)...................................................................................................................................75 第4 章 內(nèi)容管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn).......................................................................................... 76 4.1 需求分析............................................................................................................................ 76 4.1.1 需求概述......................................................................................................................76 4.1.2 功能需求......................................................................................................................76 4.1.3 系統(tǒng)模塊劃分...............................................................................................................77 4.2 系統(tǒng)數(shù)據(jù)庫(kù)的設(shè)計(jì)與實(shí)現(xiàn)................................................................................................ 77 4.2.1 數(shù)據(jù)庫(kù)的邏輯設(shè)計(jì).......................................................................................................77 4.2.2 數(shù)據(jù)庫(kù)操作腳本...........................................................................................................78 4.3 系統(tǒng)實(shí)現(xiàn)............................................................................................................................ 79 4.3.1 公共模塊......................................................................................................................79 4.3.2 內(nèi)容管理模塊...............................................................................................................89 4.3.3 欄目管理模塊...............................................................................................................94 4.3.4 列表展示模塊...............................................................................................................99 4.4 系統(tǒng)測(cè)試.......................................................................................................................... 104 4.4.1 前臺(tái)............................................................................................................................ 104 目錄 VI 4.4.2 后臺(tái).............................................................................................................................105 4.5 相關(guān)技能知識(shí)點(diǎn)...............................................................................................................107 4.5.1 面向?qū)ο蠡A(chǔ).............................................................................................................107 4.5.2 Smarty 模板................................................................................................................109 4.5.3 AJAX 基礎(chǔ)..................................................................................................................113 4.5.4 生成靜態(tài)技術(shù).............................................................................................................116 4.6 小結(jié).................................................................................................................................121 第5章 企業(yè)網(wǎng)站系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn).........................................................................................122 5.1 需求分析...........................................................................................................................122 5.1.1 需求概述.....................................................................................................................122 5.1.2 功能需求.....................................................................................................................123 5.1.3 系統(tǒng)模塊劃分.............................................................................................................123 5.2 系統(tǒng)數(shù)據(jù)庫(kù)的設(shè)計(jì)與實(shí)現(xiàn)...............................................................................................125 5.2.1 數(shù)據(jù)庫(kù)的需求分析.....................................................................................................125 5.2.2 數(shù)據(jù)庫(kù)的邏輯設(shè)計(jì).....................................................................................................125 5.3 系統(tǒng)實(shí)現(xiàn)...........................................................................................................................127 5.3.1 實(shí)現(xiàn)效果.....................................................................................................................127 5.3.2 系統(tǒng)配置文件config.php...........................................................................................130 5.3.3 通用文件comment.php..............................................................................................131 5.4 Smarty 模板實(shí)現(xiàn)..............................................................................................................136 5.4.1 登錄注冊(cè)模塊.............................................................................................................136 5.4.2 產(chǎn)品展示.....................................................................................................................139 5.4.3 信息反饋.....................................................................................................................144 5.4.4 企業(yè)新聞.....................................................................................................................145 5.4.5 管理模塊的實(shí)現(xiàn).........................................................................................................147 5.5 系統(tǒng)測(cè)試...........................................................................................................................164 5.5.1 開(kāi)發(fā)及運(yùn)行環(huán)境.........................................................................................................164 5.5.2 系統(tǒng)測(cè)試環(huán)境及注意事項(xiàng).........................................................................................165 5.6 相關(guān)技能知識(shí)點(diǎn)...............................................................................................................165 5.6.1 Smarty 模板設(shè)計(jì)........................................................................................................165 5.6.2 Smarty 程序設(shè)計(jì)........................................................................................................171 5.7 小結(jié).................................................................................................................................174 附錄...............................................................................................................................................175 附錄A PHP 實(shí)驗(yàn)....................................................................................................................175 實(shí)驗(yàn)1 PHP 基礎(chǔ)1...............................................................................................................175 實(shí)驗(yàn)2 PHP 基礎(chǔ)2...............................................................................................................177 實(shí)驗(yàn)3 PHP 數(shù)據(jù)處理..........................................................................................................181 實(shí)驗(yàn)4 PHP 和Web 交互....................................................................................................188 實(shí)驗(yàn)5 PHP 和數(shù)據(jù)庫(kù)..........................................................................................................194 實(shí)驗(yàn)6 PHP 和AJAX 技術(shù).................................................................................................198 附錄B 常見(jiàn)PHP 考題...........................................................................................................201 參考文獻(xiàn).......................................................................................................................................207 PHP 網(wǎng)站開(kāi)發(fā)
你還可能感興趣
我要評(píng)論
|