PHP Solutions: Dynamic Web Design Made Easy (Google eBook)

Front Cover
Apress, Nov 24, 2010 - Computers - 528 pages
3 Reviews

This is the second 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 first 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 you’ll learn
  • Updates to the first 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 have read the first edition classic, then this update will bring you the latest PHP techniques and best practices. 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!

Table of Contents
  1. What Is PHP—And Why Should I Care?
  2. Getting Ready to Work with PHP
  3. How to Write PHP Scripts
  4. Lightening Your Workload with Includes
  5. Bringing Forms to Life
  6. Uploading Files
  7. Using PHP to Manage Files
  8. Generating Thumbnail Images
  9. Pages That Remember: Simple Login and Multipage Forms
  10. Getting Started with MySQL
  11. Connecting to MySQL with PHP and SQL
  12. Creating a Dynamic Online Gallery
  13. Managing Content
  14. Formatting Text and Dates
  15. Pulling Data from Multiple Tables
  16. Managing Multiple Database Tables
  17. Authenticating Users with a Database
  

What people are saying - Write a review

User Review - Flag as inappropriate

Great
This book is great book for beginners and intermediate learners. The examples used in this book are smart and genious.

User Review - Flag as inappropriate

There are some bugs in the book but it's fine. I would recommend it for beginners and those that like to learn by doing.

Contents

What Is PHPAnd Why Should I Care?
1
Getting Ready to Work with PHP
9
How to Write PHP Scripts
29
Lightening Your Workload with Includes
69
Bringing Forms to Life
103
Uploading Files
141
Using PHP to Manage Files
179
Generating Thumbnail Images
215
Connecting to MySQL with PHP and SQL
303
Creating a Dynamic Online Gallery
335
Managing Content
355
Formatting Text and Dates
383
Pulling Data from Multiple Tables
415
Managing Multiple Database Tables
431
Authenticating Users with a Database
459
Authenticating Users with a Database
459

Simple Login and Multipage Forms
243
Getting Started with MySQL
279

Common terms and phrases

About the author (2010)

David Powers is an Adobe Community Expert for Dreamweaver and author of a series of highly successful books on PHP, including PHP Solutions: Dynamic Web Design Made Easy and Foundation PHP for Dreamweaver 8. As a professional writer, he has been involved in electronic media for more than 30 years, first with BBC radio and television and more recently with the Internet. His clear writing style is valued not only in the English-speaking world; several of his books have been translated into Spanish and Polish. What started as a mild interest in computing was transformed almost overnight into a passion, when David was posted to Japan in 1987 as BBC correspondent in Tokyo. With no corporate IT department just down the hallway, he was forced to learn how to fix everything himself. When not tinkering with the innards of his computer, he was reporting for BBC television and radio on the rise and collapse of the Japanese bubble economy. Since leaving the BBC to work independently, he has built up an online bilingual database of economic and political analysis for Japanese clients of an international consultancy. When not pounding the keyboard writing books or dreaming of new ways of using PHP and other programming languages, David enjoys nothing better than visiting his favorite sushi restaurant. He has also translated several plays from Japanese.

Bibliographic information