PHP/MySQL Web Development Using Dreamweaver

Defining your Dreamweaver Site for Webscript

Dreamweaver's site definition allows much flexibility in setting up your working environment. In our class we will show you one way to set up Dreamweaver to work with Webscript. Using this as a basis you can adapt these techniques to work with other PHP servers as you gain experience.

Exercise 2

  1. First, you will need to download the file DWphpClass.zip by clicking the preceding link. Put it on your desktop.
  2. Double-click the downloaded file to expand it into a folder and then move the folder into "My Documents." The folder contains a Dreamweaver template and CSS file that you'll need. (It also contains a ".htaccess" file that turns on PHP error reporting for Webscript.)
  3. From the "start" menu on your PC, run the "Dreamweaver 8" program.
  4. Select "New Site..." from the "Site" menu.
  5. Make sure the "Advanced" tab is selected. Type the following into the named sections of the site definition. (Be sure to change any occurences of the string "yournetid" to your own Princeton NetID.) Don't forget to test your remote and testing server connections. Watch "exercise 2 demo" to see how. (time 2:25)
    1. Local Info
      • Site: DWphpClass
      • Local root folder: Point to the DWphpClass folder you put in "My Documents."
      • Refresh local file list automatically: √
      • Links relative to: Document
      • HTTP address: http://webscript.princeton.edu/~yournetid/
    2. Remote Info
      • Access: FTP
      • FTP host: arizona.princeton.edu
      • Host directory: public_html
      • Login: yournetid
      • Password: your unix password
      • Save: √
      • Use Secure FTP (SFTP): √
    3. Testing Server
      • Server model: PHP MySQL
      • Access: FTP
      • FTP host: arizona.princeton.edu
      • Host directory: public_html
      • Login: yournetid
      • Password: your unix password
      • Save: √
      • Use Secure FTP (SFTP): √
      • URL prefix: http://webscript.princeton.edu/~yournetid/
  6. Click OK to save your site definition.

Take me to the next section...

 

Last updated: 02/20/2006 5:31 PM
©2006. The Trustees of Princeton University.