Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
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.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 80785 Viewers
80 Video lessons · 132955 Viewers
52 Video lessons · 66415 Viewers
59 Video lessons · 52217 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.