商品描述
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 Solutions: Dynamic Web Design Made Easy的第三版。這一新版由David更新,以納入自第二版以來PHP的變更,並提供最新的技術——這是一本經典指南,現代化了21世紀的PHP技術、創新和最佳實踐。
您想通過添加反饋表單、創建一個私人區域讓會員上傳自動調整大小的圖片,或者可能將所有內容存儲在數據庫中來使您的網站更具動態性。問題是,您不是程序員,寫代碼的想法讓您感到不安。或者您可能對PHP和MySQL有些了解,但無法超越初學者的步驟。如果這描述了您,那麼您剛好找到了合適的書籍。PHP和MySQL數據庫無疑是創建動態網站最受歡迎的組合。它們是免費的,易於使用,並且許多網頁託管公司在其標準套餐中提供。
不幸的是,大多數PHP書籍要麼期望您已經是專家,要麼迫使您經歷無數實用性不大的練習。相比之下,本書通過一系列實用的範例立即為您提供真正的價值,您可以直接將其納入您的網站,優化性能並添加功能,例如文件上傳、電子郵件反饋表單、圖片庫、內容管理系統等等。每個解決方案不僅考慮功能,還考慮視覺設計。
但這本書不僅僅提供一系列現成的腳本:每個PHP解決方案都建立在之前的基礎上,快速且輕鬆地教您PHP和數據庫設計的基礎知識。在書的結尾,您將有信心開始編寫自己的腳本,或者——如果您更願意將這項任務留給他人——根據自己的需求調整現有的腳本。從一開始,您就會看到通過採用安全編碼實踐來保護您的網站是多麼簡單。