In this lesson, you will:
This lesson should take approximately 1 hour to completevideo tutorials.
"If you had one extra day in your week to learn a new technology, what would you choose?" That's one of the questions the Adobe Dreamweaver product team asked users before starting work on Dreamweaver CS5. An overwhelming majority answered, "PHP or a PHP framework." It's a message the team took on board, which resulted in a version of Dreamweaver that turns it into a powerful development environment for PHP without losing any of its visual development features. Dreamweaver CS5 is a program that gives programmers and designers plenty to smile about. For designers, probably the most welcome change is the ability to see a WordPress, Drupal, or Joomla! site in Live Viewvideo tutorials.
Figure 1 Dreamweaver CS5 can now display WordPress and other popular CMSs directly in Live View.
For programmers, many new features can be put at the top of the list: vastly improved PHP code hinting, automatic detection of dynamically related files, autocompletion of variables, and so on.
One thing that hasn't changed—and this will come as a disappointment to some existing users—is the range or functionality of PHP server behaviors. A server behavior is a Dreamweaver tool that automatically generates PHP code for such things as inserting, updating, and deleting records in a database. Many people like server behaviors because everything is done through dialog boxes without the need to touch a line of code. Server behaviors are great for rapid prototyping or taking your first steps with PHP, but they take you only so far. You soon discover that you need to customize them to do anything beyond the most basic tasks—and you can't do that unless you understand the code. This book covers the main server behaviors, but also takes you further to make full use of the new PHP features in Dreamweaver CS5. However, that doesn't mean you'll end up typing endless amounts of PHP code.
Dreamweaver CS5 allows you to take advantage of a much wider range of resources coded by some of the most experienced people in the business. You'll learn how to work with one of the most popular PHP-driven content management systems (CMS), WordPress. You'll also learn how to upload files, send emails with attachments, and interact with a database using a selection of components from the Zend Framework. The framework is designed in such a way that you can cherry pick, making it easy to add sophisticated functionality to a website without needing to become an expert programmer beforehand.
You don't need previous PHP experience to use this book—although you'll be able to progress more rapidly or jump to lessons that interest you if you do. Everything is explained along the way, along with details of where to get more information. The only prerequisite is that you be familiar with building websites using HTML and CSS. Preferably, you should also be familiar with the Dreamweaver user interface.
I use HTML to refer to both HTML (Hypertext Markup Language) and XHTML (Extensible Hypertext Markup Language). All the HTML code in this book conforms to XHTML 1.0 Transitional, the default setting in Dreamweaver CS5.
Before embarking on the journey ahead, let's take a quick look at PHP and what it's for, and then take a brief tour of the features in Dreamweaver CS5 that make it such a good development environment for PHP-driven websitesvideo tutorials.