買這商品的人也買了...
-
$690$587 -
$590$466 -
$590$466 -
$800$720 -
$750$638 -
$560$476 -
$2,380$2,261 -
$850$723 -
$480$379 -
$750$593 -
$780$616 -
$780$663 -
$590$460 -
$680$537 -
$420$328 -
$490$382 -
$880$695 -
$550$468 -
$580$493 -
$490$382 -
$780$741 -
$780$663 -
$550$468 -
$490$245 -
$1,120$1,098
相關主題
商品描述
Web Database Applications with PHP and MySQL, Second Edition thoroughly reflects the needs of real-world applications. It goes into detail on such practical issues as validating input (do you know what a proper credit card number looks like?), logging in users, and using templates
to give your dynamic web pages a standard look.
But this book goes even further. It shows how JavaScript and PHP can be used in tandem to make a user's experience faster and more pleasant. It shows the correct way to handle errors in user input so that a site looks professional. It introduces the vast collection of powerful tools available in the PEAR repository and shows how to use some of the most popular tools.
Even while it serves as an introduction to new programmers, the book does not omit critical tasks that web sites require. For instance, every site that allows updates must handle the possibility of multiple users accessing data at the same time. This book explains how to solve the problem in detail with locking.
Through a sophisticated sample application--Hugh and Dave's Wine Store--all the important techniques of dynamic content are introduced. Good design is emphasized, such as dividing logic from presentation. The book introduces PHP 5 and MySQL 4.1 features, while providing techniques that can be used on older versions of the software that are still in widespread use.
This new edition has been redesigned around the rich offerings of PEAR. Several of these, including the Template package and the database-independent query API, are fully integrated into examples and thorougly described in the text. Topics include:
- Installation and configuration of Apache, MySQL, and PHP on Unix®,
Windows®, and Mac OS® X systems
- Introductions to PHP, SQL, and MySQL administration
- Session management, including the use of a custom database for improved
efficiency
- User input validation, security, and authentication
- The PEAR repository, plus details on the use of PEAR DB and Template
classes
- Production of PDF reports
Table of Contents
Preface
1. Database Applications and the Web
The Web
Three-Tier Architectures2. The PHP Scripting Language
Introducing PHP
Conditions and Branches
Loops
Functions
Working with Types
User-Defined Functions
A Working Example3. Arrays, Strings, and Advanced Data Manipulation in PHP
Arrays
Strings
Regular Expressions
Dates and Times
Integers and Floats4. Introduction to Object-Oriented Programming with PHP 5
Classes and Objects
Inheritance
Throwing and Catching Exceptions5. SQL and MySQL
Database Basics
MySQL Command Interpreter
Managing Databases and Tables
Inserting, Updating, and Deleting Data
Querying with SQL SELECT
Join Queries
Case Study: Adding a New Wine6. Querying Web Databases
Querying a MySQL Database Using PHP
Processing User Input
MySQL Function Reference7. PEAR
Overview
Core Components
Packages8. Writing to Web Databases
Database Inserts, Updates, and Deletes
Issues in Writing Data to Databases9. Validation with PHP and JavaScript
Validation and Error Reporting Principles
Server-Side Validation with PHP
JavaScript and Client-Side Validation10. Sessions
Introducing Session Management
PHP Session Management
Case Study: Using Sessions in Validation
When to Use Sessions
PHP Session API and Configuration11. Authentication and Security
HTTP Authentication
HTTP Authentication with PHP
Form-Based Authentication
Protecting Data on the Web12. Errors, Debugging, and Deployment
Errors
Common Programming Errors
Custom Error Handlers13. Reporting
Creating a Report
Producing PDF
PDF-PHP Reference14. Advanced Features of Object-Oriented Programming in PHP 5
Working with Class Hierarchies
Class Type Hints
Abstract Classes and Interfaces
Freight Calculator Example15. Advanced SQL
Exploring with SHOW
Advanced Querying
Manipulating Data and Databases
Functions
Automating Querying
Table Types
Backup and Recovery
Managing Users and Privileges
Tuning MySQL16. Hugh and Dave's Online Wines: A Case Study
Functional and System Requirements
Application Overview
Common Components17. Managing Customers
Code Overview
Customer Validation
The Customer Form18. The Shopping Cart
Code Overview
The Winestore Home Page
The Shopping Cart Implementation19. Ordering and Shipping at the Online Winestore
Code Overview
Credit Card and Shipping Instructions
Finalizing Orders
HTML and Email Receipts20. Searching and Authentication in the Online Winestore
Code Overview
Searching and Browsing
AuthenticationA. Linux Installation Guide
B. Microsoft Windows Installation Guide
C. Mac OS X Installation Guide
D. Web Protocols
E. Modeling and Designing Relational Databases
F. Managing Sessions in the Database Tier
G. Resources
H. The Improved MySQL Library
Index
商品描述(中文翻譯)
有許多原因需要從網站提供動態內容:例如提供線上購物網站、為用戶創建自定義資訊頁面,或僅僅是通過數據庫管理大量內容。任何對 HTML 和網站管理有基本了解的人都可以學會通過 PHP 程式語言和 MySQL 數據庫創建動態內容。本書為您提供了安全可靠地完成這項工作的背景和工具。
《Web Database Applications with PHP and MySQL》(第二版)徹底反映了現實世界應用的需求。它詳細探討了許多實用問題,例如驗證輸入(您知道正確的信用卡號碼應該是什麼樣子嗎?)、用戶登錄以及使用模板來為您的動態網頁提供標準外觀。
但本書更進一步。它展示了如何將 JavaScript 和 PHP 結合使用,以使用戶的體驗更快、更愉快。它展示了處理用戶輸入錯誤的正確方法,以使網站看起來更專業。它介紹了 PEAR 存儲庫中可用的強大工具的廣泛集合,並展示了如何使用一些最受歡迎的工具。
即使本書作為新程序員的入門書籍,也不會忽略網站所需的關鍵任務。例如,任何允許更新的網站都必須處理多個用戶同時訪問數據的可能性。本書詳細解釋了如何通過鎖定來解決這個問題。
通過一個複雜的示例應用程序——Hugh 和 Dave 的酒商——介紹了所有動態內容的重要技術。強調良好的設計,例如將邏輯與表現分開。本書介紹了 PHP 5 和 MySQL 4.1 的特性,同時提供了可以在仍然廣泛使用的舊版本軟件上使用的技術。
這一新版圍繞 PEAR 的豐富資源進行了重新設計。其中幾個,包括模板包和獨立於數據庫的查詢 API,已完全整合到示例中並在文本中詳細描述。主題包括:
- 在 Unix®、Windows® 和 Mac OS® X 系統上安裝和配置 Apache、MySQL 和 PHP
- PHP、SQL 和 MySQL 管理的介紹
- 會話管理,包括使用自定義數據庫以提高效率
- 用戶輸入驗證、安全性和身份驗證
- PEAR 存儲庫,以及 PEAR DB 和模板類的使用細節
- PDF 報告的生成
目錄
前言
1. 數據庫應用與網絡
- 網絡
- 三層架構
2. PHP 程式語言
- 介紹 PHP
- 條件與分支
- 迴圈
- 函數
- 與類型的工作
- 用戶定義函數
- 一個工作示例
3. PHP 中的數組、字符串和高級數據操作
- 數組
- 字符串
- 正則表達式
- 日期和時間
- 整數和浮點數
4. 使用 PHP 5 的面向對象編程介紹
- 類和對象
- 繼承
- 拋出和捕獲異常
5. SQL 和 MySQL
- 數據庫基礎
- MySQL 命令解釋器
- 管理數據庫和表
- 插入、更新和刪除數據
- 使用 SQL SELECT 查詢
- 連接查詢
- 案例研究:添加新酒
6. 查詢網絡數據庫
- 使用 PHP 查詢 MySQL 數據庫
- 處理用戶輸入
- MySQL 函數參考
7. PEAR
- 概述
- 核心組件
- 包
8. 寫入網絡數據庫
- 數據庫插入、更新和刪除
- 寫入數據到數據庫的問題
9. 使用 PHP 和 JavaScript 的驗證
- 驗證和錯誤報告原則
- 使用 PHP 的伺服器端驗證
- JavaScript 和客戶端驗證
10. 會話
- 介紹會話管理
- PHP 會話管理
- 案例研究:在驗證中使用會話
- 何時使用會話
- PHP 會話 API 和配置
11. 身份驗證和安全性
- HTTP 身份驗證
- 使用 PHP 的 HTTP 身份驗證
- 基於表單的身份驗證
- 保護網絡上的數據
12. 錯誤、調試和部署
- 錯誤
- 常見編程錯誤
- 自定義錯誤處理器
13. 報告
- 創建報告
- 生成 PDF
- PDF-PHP 參考
14. PHP 5 中面向對象編程的高級特性
- 與類層次結構的工作
- 類型提示
- 抽象類和接口
- 貨運計算器示例
15. 高級 SQL
- 使用 SHOW 探索
- 高級查詢
- 操作數據和數據庫
- 函數
- 自動化查詢
- 表類型
- 備份和恢復
- 管理用戶和權限
- 調整 MySQL
16. Hugh 和 Dave 的在線酒商:案例研究
- 功能和系統需求
- 應用概述
- 常見組件
17. 管理客戶
- 代碼概述
- 客戶驗證
- 客戶表單
18. 購物車
- 代碼概述
- 酒商首頁
- 購物車實現
19. 在線酒商的訂購和運送
- 代碼概述
- 信用卡和運送說明
- 最終確認訂單
- HTML 和電子郵件收據
20. 在線酒商的搜索和身份驗證
- 代碼概述
- 搜索和瀏覽
- 身份驗證
附錄 A. Linux 安裝指南
附錄 B. Microsoft Windows 安裝指南
附錄 C. Mac OS X 安裝指南
附錄 D. 網絡協議
附錄 E. 建模和設計關聯數據庫
附錄 F. 在數據庫層管理會話
附錄 G. 資源
附錄 H. 改進的 MySQL 庫
索引