Ebook: PHP Solutions: Dynamic Web Design Made Easy
Author: David Powers (auth.)
- Genre: Computers // Programming
- Tags: Programming Techniques
- Year: 2007
- Publisher: Apress
- Edition: 1
- Language: English
- pdf
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. The book has been written with an eye on forward and backward compatibility recommending PHP 5 techniques, but providing alternative solutions for servers still running PHP 4.3. All database examples demonstrate how to use the original MySQL extension, MySQL Improved, or the PHP Data Objects (PDO) introduced in PHP 5.1, letting you choose the most suitable option for your setup.
The killer combination of PHP, MySQL database, and the Apache web server is by far the most popular set of dynamic web technologies in use today. But not everyone who uses PHP is a programmer. PHP is the most common dynamic web language used by designers, if their web sites require dynamic functionality, and there are hordes of novice users who want to set up dynamic web sites.
Unlike code-heavy references, this book provides a more friendly, accessible and visual learning style. It takes the reader through the details of setting up their development environment and PHP code basics as painlessly as possible, and shows how to wire together several real world PHP projects. The PHP code offered here generates semantically-sound markup, which is then attractively styled using CSS.
The book is compatible with the latest versions of PHP (6) and MySQL (5,) but is written to be compatible with older versions that readers might find on their hosting servers. Security is very important for effective PHP sites, but often overlooked by beginners. This book teaches security right from the start.