相關主題
商品描述
This is the third edition of David Powers' highly-respected PHP Solutions: Dynamic Web Design Made Easy. This new edition has been updated by David to incorporate changes to PHP since the second edition and to offer the latest techniques—a classic guide modernized for 21st century PHP techniques, innovations, and best practices.
You want to make your websites more dynamic by adding a feedback form, creating a private area where members can upload images that are automatically resized, or perhaps storing all your content in a database. The problem is, you're not a programmer and the thought of writing code sends a chill up your spine. Or maybe you've dabbled a bit in PHP and MySQL, but you can't get past baby steps. If this describes you, then you've just found the right book. PHP and the MySQL database are deservedly the most popular combination for creating dynamic websites. They're free, easy to use, and provided by many web hosting companies in their standard packages.
Unfortunately, most PHP books either expect you to be an expert already or force you to go through endless exercises of little practical value. In contrast, this book gives you real value right away through a series of practical examples that you can incorporate directly into your sites, optimizing performance and adding functionality such as file uploading, email feedback forms, image galleries, content management systems, and much more. Each solution is created with not only functionality in mind, but also visual design.
But this book doesn't just provide a collection of ready-made scripts: each PHP Solution builds on what's gone before, teaching you the basics of PHP and database design quickly and painlessly. By the end of the book, you'll have the confidence to start writing your own scripts or—if you prefer to leave that task to others—to adapt existing scripts to your own requirements. Right from the start, you're shown how easy it is to protect your sites by adopting secure coding practices.
What youll learn
- Updates to the second edition with the latest PHP techniques for modern, dynamic web design
- Create dynamic websites with design and usability in mind, as well as functionality
- Understand how PHP scripts work, giving you confidence to adapt them to your own needs
- Bring online forms to life, check required fields, and ensure user input is safe to process
- Upload files and automatically create thumbnails from larger images
- Manage website content with a searchable database
Who this book is for
This is a "must have" reference book for any Web developer using PHP scripting language. If you are new to dynamic web design with PHP, then David will introduce you to the core techniques and methods for dynamic PHP web sites, ready for the 21st century! If you have read either of the earlier editions, then this update will bring you the latest PHP techniques and best practices.
Table of Contents
- What Is PHP—And Why Should I Care?
- Getting Ready to Work with PHP
- How to Write PHP Scripts
- Lightening Your Workload with Includes
- Bringing Forms to Life
- Uploading Files
- Using PHP to Manage Files
- Generating Thumbnail Images
- Pages That Remember: Simple Login and Multipage Forms
- Getting Started with a Database
- Connecting to to a Database with PHP and SQL
- Creating a Dynamic Photo Gallery
- Managing Content
- Formatting Text and Dates
- Pulling Data from Multiple Tables
- Managing Multiple Database Tables
- Authenticating Users with a Database
商品描述(中文翻譯)
這是 David Powers 高度受人尊敬的《PHP解決方案:輕鬆製作動態網頁設計》的第三版。這本新版由 David 更新,以納入自第二版以來的 PHP 變化,並提供最新的技術 - 一本經典指南,現代化的 21 世紀 PHP 技術、創新和最佳實踐。
您想通過添加反饋表單、創建成員可以自動調整大小的圖像的私人區域,或者將所有內容存儲在數據庫中,使您的網站更具動態性。問題是,您不是一名程序員,而且寫代碼的想法讓您感到不安。或者,您可能已經稍微涉獵過 PHP 和 MySQL,但無法超越初步階段。如果您符合這種情況,那麼您剛剛找到了正確的書籍。PHP 和 MySQL 數據庫理所當然地成為創建動態網站的最受歡迎組合。它們免費、易於使用,並由許多網頁託管公司在其標準套餐中提供。
不幸的是,大多數 PHP 書籍要麼期望您已經是專家,要麼迫使您進行毫無實際價值的無盡練習。相比之下,本書通過一系列實用示例立即為您提供真正的價值,您可以直接將其應用於您的網站中,優化性能並添加功能,例如文件上傳、電子郵件反饋表單、圖像庫、內容管理系統等等。每個解決方案都不僅考慮功能,還考慮視覺設計。
但是,本書不僅提供一系列現成的腳本:每個 PHP 解決方案都建立在之前的基礎上,快速且無痛地教授您 PHP 和數據庫設計的基礎知識。通過本書,您將有信心開始編寫自己的腳本,或者 - 如果您更喜歡將此任務交給他人 - 將現有腳本適應您的需求。從一開始,您就會看到採用安全編碼實踐保護您的網站有多容易。
您將學到什麼:
- 使用最新的 PHP 技術創建現代、動態的網頁設計
- 考慮設計和易用性,以及功能,創建動態網站
- 理解 PHP 腳本的運作方式,讓您有信心將其適應到自己的需求中
- 使在線表單生動起來,檢查必填字段,並確保用戶輸入安全處理
- 上傳文件並從較大的圖像自動創建縮略圖
- 使用可搜索的數據庫管理網站內容
這本書適合哪些人:
這是任何使用 PHP 腳本語言的網頁開發人員的「必備」參考書。如果您是初次接觸具有 PHP 動態網頁設計的人,David 將向您介紹動態 PHP 網站的核心技術和方法,為 21 世紀做好準備!如果您已經閱讀過前兩版中的任何一本,那麼這次更新將為您帶來最新的 PHP 技術和最佳實踐。
目錄:
1. 什麼是 PHP - 我為什麼要關心?
2. 準備使用 PHP
3. 如何編寫 PHP 腳本
4. 使用包含文件輕鬆減輕工作量
5. 讓表單生動起來
6. 上傳文件
7. 使用 PHP 管理文件
8. 生成縮略圖
9. 具有簡單登錄和多頁表單的頁面
10. 開始使用數據庫
11. 通過 PHP 和 SQL 連接到數據庫
12. 創建動態相冊
13. 管理內容
14. 格式化文本和日期
15. 從多個表中提取數據
16. 管理多個數據庫表
17. 使用數據庫驗證用戶