Define a Dreamweaver site Dreamweaver and PHP
Defining a Dreamweaver site
To get started building a web site that's associated with PHP, you define a Dreamweaver site. The first part of the process is the same, regardless of whether your site is static or dynamic within application server. In Dreamweaver CS5, I'll go to the Menu and select Site > New Site. You can also get to this Site Setup dialog by going through the Menu and selecting Site > Manage Sites and then clicking the New button. In the Site Setup dialog, you'll set the site name and the local site folder, I'm going to name my site DW CS5 with PHP and MySQL. You can name the site anything you want and you can include spaces in the name.
Then set the local site folder to the physical location of the site root, I'll click the browse icon and I'll start at the Exercise Files folder, which I'll find on my Desktop. From there, I'll go down to 02_ gettingstarted to 01_definesite, where I have a complete set of site files, and I'll click Select. For a static site that's all you have to do. Now let's take a look at other elements of the Site Setup dialog in Dreamweaver CS5.
The Servers category lets you setup your remote and testing servers. The testing server is the server that you work with on your local computer. The remote server is the production server where you host the web site for external users. I'll describe how to use this part of the site setup dialog in a separate video. The Version Control category lets you connect to a subversion repository, so you can manage your site files, checking them in, checking them out, and rolling back to previous versions.
In the Advanced Settings folder you'll find settings for Local Info, Cloaking, Design Notes, and so on. These settings aren't specific to the world of PHP or application servers, so I won't be describing them in detail in this video series. I'll click Save and that creates the new site, and then if I started from the Manage Sites dialog, I need to click Done. In the Files panel I should now see a complete listing of the site's assets. HTML, image, CSS files, and so on.
I'll click Expand button and that will show me a larger view of the files that are available. I'm working with my local file set. Here is the homepage of the existing site, index.htm; I'll double-click it to open it. Then I can test the page either through the Live View button, which opens the file directly from the hard disk, or if I prefer, I can deselect Live View and then go to the Preview button and select a particular browser, such as Firefox.
Regardless of whether I use Live View or an external browser, notice that I'm testing the files by loading them directly from the hard disk. For a PHP-based site though, there's a little bit more work to do, setting up the testing server, and then testing the PHP pages by calling them from DHTTP server, rather than the hard disk, and I'll describe how to set that up in another video.
WordPress DIY: Community Website65,335 Views
Code Clinic: Ruby79,518 Views
Squarespace 7 Intermediate Techniques41,929 Views
Making Music with Ableton Push120,151 Views
Adobe Color Essential Training19,919 Views
PHP with MySQL Essential Training4,259,922 Views
Illustrator CC 2013 One-on-One: Fundamentals1,676,368 Views
PHP with MySQL Beyond the Basics2,279,136 Views