PHP 5 Advanced: Visual QuickPro Guide, 2/e
暫譯: PHP 5 進階:快速專業指南(第二版)

Larry Ullman

  • 出版商: Peachpit Press
  • 出版日期: 2007-03-15
  • 售價: $1,880
  • 貴賓價: 9.5$1,786
  • 語言: 英文
  • 頁數: 608
  • 裝訂: Paperback
  • ISBN: 0321376013
  • ISBN-13: 9780321376015
  • 相關分類: PHP
  • 已過版

買這商品的人也買了...

商品描述

Description

PHP is currently one of the most popular server-side, HTML-embedded scripting language on the Web. It's specifically designed for Web site creation and is frequently being used to replace the functionality created by Perl to write CGI scripts. PHP's popularity and easier-to-learn appeal has spawned a new breed of programmer, those who are only familiar with and only use PHP.
 
Sharpen your PHP skills with the fully revised and updated, PHP 5 Advanced for the World Wide Web: Visual QuickPro Guide! Filled with fifteen chapters of step-by-step content and written by best-selling author and PHP programmer, Larry Ullman, this guide teaches specific topics in direct, focused segments, shows how PHP is used in real-world applications, features popular and most-asked-about scripts, and details those technologies that will be more important in the future. You'll learn about object-oriented programming, PHP interactions with a server, XML, RSS, Networking with PHP, image and PDF generation, and more.

 

 

Table of Contents

Introduction

Chapter 1: Advanced PHP Programming

    Code Structure and Documentation
    Function Recursion and Static Variables
    References and Functions
    PERL-Compatible Regular Expressions

Chapter 2: Basic Object-Oriented Programming
    Defining a Class
    Creating an Object
    Creating Constructors
    Object Inheritance
    Using Class Functions Without Instances
    Serializing Objects
    Destroying Objects
    
Chapter 3: Developing Web Applications
    Catching Exceptions
    Using PEAR's HTML_QuickFOrm
    Modularizing a Web Site
    Error Logging and Reporting
    Browser Detection

Chapter 4: Database Concepts
    Database Design and Normalization
    Storing Sessions in a Database
    Storing BLOBs in a Database
    Using Prepared Statements
    Database Encryption
    Working with Bound Variables

Chapter 5: Security
    Validating Forms
    Validating Forms with JavaScript
    Encryption with Mcrypt
    HTTP Authentication
    Web Server Security
    Shared Server Security
    Encorporating Captcha with PEAR
    Using PEAR Auth

Chapter 6: Advanced OOP
    Inheritance
    Access Control
    Polymorphism
    Encapsulation
    Overloading

Chapter 7: E-Commerce
    Creating the Database
    Administration
    Showing the Products Online
    Writing a Shopping Cart
    Handling Commerical Transactions

Chapter 8: Image Generation
    Creating a Simple Image
    Using TrueType Fonts
    Creating a Database-Driven Graph
    Saving and Building on Existing Images

Chapter 9: Creating PDFs
    Creating a Simple PDF
    Adding Text to PDFs
    Drawing Shapes
    Using Images
    Creating Multiple-Page PDFs

Chapter 10: XML and PHP
    What is XML?
    XML Syntax
    Document Type Definitions
    Parsing XML With PHP
    XML Error Handling

Chapter 11: Networking with PHP
    Accessing Other Web Sites with PHP
    Using fsockopen()
    Creating RSS Feeds
    AJAX
    Using Curl
    Understanding Streams

Chapter 12: PHP and the Server
    Establishing a Cron
    Task Manager on Windows
    Compressing Files with PHP
    Using COM with PHP
    PHP on Windows
    Running Two Versions of PHP with Apache
   
Chapter 13: Using PHP's Command Line Interface
    Basic Syntax
    Working with Command Line Arguments
    Redirecting Output
   
Chapter 14: Improving PHP Performance
    Installation Options
    Configuration Options
    Using an Op Cache
    Coding Suggestions
    Database Suggestions
    Using Benchmarks
    Using Profiling
    Performing Unit Tests
   
Appendix A: Installation
    Installing PHP with Apache on Linux
    Installing PHP on Windows with Xitami
    Installing PHP on Mac OS X with Apache
    Running Two Versions of PHP with Apache

Appendix B: Databases
    Database Applications
    SQL
    MySQL Resources
    Other Resources

Appendix C: General Resources
    PHP-Specific Sites
    Additional Libraries
    Security
    Other Resources

商品描述(中文翻譯)

**描述**

PHP 目前是網路上最受歡迎的伺服器端 HTML 嵌入式腳本語言之一。它專為網站創建而設計,並經常用來取代 Perl 寫作 CGI 腳本的功能。PHP 的受歡迎程度及其易學性吸引了一種新型的程式設計師,他們僅熟悉並使用 PHP。

透過全面修訂和更新的《PHP 5 進階網路應用:Visual QuickPro 指南》,提升你的 PHP 技能!本指南由暢銷書作者及 PHP 程式設計師 Larry Ullman 撰寫,包含十五章逐步內容,教導特定主題,並以直接、專注的段落呈現,展示 PHP 在實際應用中的使用,涵蓋熱門及最常被詢問的腳本,並詳細介紹未來將更為重要的技術。你將學習到物件導向程式設計、PHP 與伺服器的互動、XML、RSS、使用 PHP 進行網路連接、圖像和 PDF 生成等內容。

**目錄**

**導言**

**第 1 章:進階 PHP 程式設計**
代碼結構與文檔
函數遞迴與靜態變數
參考與函數
PERL 相容的正則表達式

**第 2 章:基本物件導向程式設計**
定義類別
創建物件
創建建構函數
物件繼承
無實例使用類別函數
物件序列化
銷毀物件

**第 3 章:開發網路應用**
捕捉例外
使用 PEAR 的 HTML_QuickForm
模組化網站
錯誤日誌與報告
瀏覽器檢測

**第 4 章:資料庫概念**
資料庫設計與正規化
在資料庫中儲存會話
在資料庫中儲存 BLOB
使用預備語句
資料庫加密
使用綁定變數

**第 5 章:安全性**
驗證表單
使用 JavaScript 驗證表單
使用 Mcrypt 進行加密
HTTP 認證
網路伺服器安全性
共享伺服器安全性
與 PEAR 結合使用 Captcha
使用 PEAR Auth

**第 6 章:進階 OOP**
繼承
存取控制
多型
封裝
重載

**第 7 章:電子商務**
創建資料庫
管理
在線顯示產品
編寫購物車
處理商業交易

**第 8 章:圖像生成**
創建簡單圖像
使用 TrueType 字型
創建資料庫驅動的圖表
儲存和基於現有圖像的生成

**第 9 章:創建 PDF**
創建簡單 PDF
向 PDF 添加文本
繪製形狀
使用圖像
創建多頁 PDF

**第 10 章:XML 與 PHP**
XML 是什麼?
XML 語法
文件類型定義
使用 PHP 解析 XML
XML 錯誤處理

**第 11 章:使用 PHP 進行網路連接**
使用 PHP 訪問其他網站
使用 fsockopen()
創建 RSS 源
AJAX
使用 Curl
理解流

**第 12 章:PHP 與伺服器**
建立 Cron
Windows 上的任務管理器
使用 PHP 壓縮文件
使用 COM 與 PHP
Windows 上的 PHP
使用 Apache 運行兩個版本的 PHP

**第 13 章:使用 PHP 的命令行介面**
基本語法
處理命令行參數
重定向輸出

**第 14 章:改善 PHP 性能**
安裝選項
配置選項
使用 Op Cache
編碼建議
資料庫建議
使用基準測試
使用性能分析
執行單元測試

**附錄 A:安裝**
在 Linux 上使用 Apache 安裝 PHP
在 Windows 上使用 Xitami 安裝 PHP
在 Mac OS X 上使用 Apache 安裝 PHP
使用 Apache 運行兩個版本的 PHP

**附錄 B:資料庫**
資料庫應用
SQL
MySQL 資源
其他資源

**附錄 C:一般資源**
PHP 專用網站
額外庫
安全性
其他資源