Book description
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.
Table of contents
- Cover
- Title
- Copyright
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: What Is PHP—And Why Should I Care?
- Chapter 2: Getting Ready to Work with PHP
-
Chapter 3: How to Write PHP Scripts
-
PHP: The Big Picture
- Telling the Server to Process PHP
- Embedding PHP in a Webpage
- Storing PHP in an ExternalFile
- Using Variables to Represent ChangingValues
- Ending Commands With aSemicolon
- Commenting Scripts
- Using Arrays to Store Multiple Values
- PHP’s Built-inSuperglobal Arrays
- Understanding When to Use Quotes
- MakingDecisions
- Making Comparisons
- Using Indenting and Whitespace for Clarity
- Using Loops for Repetitive Tasks
- Using Functions for Preset Tasks
- Understanding PHP Classes and Objects
- Displaying PHP Output
- Understanding PHP ErrorMessages
- PHP: A Quick Reference
- PHPQuick Checklist
-
PHP: The Big Picture
-
Chapter 4: Lightening Your Workload with Includes
-
Including Code from External Files
- Introducing the PHP Include Commands
- Where PHP Looks for Include Files
- Choosing the Right Filename Extension forIncludes
- Creating Pages with Changing Content
- Preventing Errors with Include Files
- Suppressing Error Messages on a Live Website
- Choosing where to Locate your Include Files
- Adjusting your include_path
- Why can’t I Use Site-root-relative Links with PHP Includes?
- Security Considerations with Includes
- Chapter Review
-
Including Code from External Files
- Chapter 5: Bringing Forms to Life
- Chapter 6: Uploading Files
- Chapter 7: Using PHP to Manage Files
- Chapter 8: Generating Thumbnail Images
-
Chapter 9: Pages That Remember: Simple Login and Multipage Forms
- What Sessions Are and How They Work
-
Using Sessions to Restrict Access
- PHP Solution 9-1: A Simple Session Example
- PHP Solution 9-2: Buffering the Output with ob_start( )
- Using File-based Authentication
- PHP Solution 9-3: Building the Login Page
- PHP Solution 9-4: Restricting Access to a Page with a Session
- PHP Solution 9-5: Creating a Reusable Logout Button
- Making Passwords More Secure
- PHP Solution 9-6: Creating a Password-strength Checker
- PHP Solution 9-7: Creating a File-based User Registration System
- PHP Solution 9-8: Using an Encrypted Login
- Setting a Time Limit on Sessions
- Passing Information Through Multipage Forms
- Chapter Review
- Chapter 10: Getting Started with a Database
- Chapter 11: Connecting to a Database with PHP and SQL
- Chapter 12: Creating a Dynamic Photo Gallery
- Chapter 13: Managing Content
- Chapter 14: Formatting Text and Dates
- Chapter 15: Pulling Data from Multiple Tables
- Chapter 16: Managing Multiple Database Tables
- Chapter 17: Authenticating Users with a Database
- Index
Product information
- Title: PHP Solutions: Dynamic Web Design Made Easy, Third Edition
- Author(s):
- Release date: December 2014
- Publisher(s): Apress
- ISBN: 9781484206355
You might also like
book
PHP Solutions: Dynamic Web Design Made Easy, Second Edition
This is the second edition of David Power's highly-respected PHP Solutions: Dynamic Web Design Made Easy. …
book
PHP Solutions: Dynamic Web Design Made Easy
You want to make your websites more dynamic by adding a feedback form, creating a private …
book
PHP 7 Solutions: Dynamic Web Design Made Easy
Make your websites more dynamic by adding a feedback form, creating a private area where members …
video
Dynamic Web Design with PHP and MySQL
In this PHP - MYSQL training course you will learn how to leverage PHP and MySQL …