(Macintosh) Leave the Site Definition dialog box open...
Serwis znalezionych hasełOdnośniki
- Smutek to uczucie, jak gdyby się tonęło, jak gdyby grzebano cię w ziemi.
- We arrive, then, at a definition of the syllable as a minimal pulse of initiatory activity bounded by a momentary retardation of the initiator, either self-imposed, or, more...
- - A onirofilm?- Onirofilm w swej formie definitywnej pojawił się kilka lat później...
- W encyklopediach i sownikach w definicjach bezpieczestwa eksponuje si gwnie te jego desygnaty, ktre wi si z poczuciem zagroenia, brakiem nalenej ochrony...
- bp Kaoshsiung; Joseph Wang bp pomocniczyTaipei; Thomas Pai administrator apostolskiPenghu; John Tsao wikary kapituy Hualien Biskupi Tajwanu, PO Box...
- safe_mode_proteced_env_vars = "PATH, LD_LIBRARY_PATH" open_basedir = $a'cuch_znaków Zasięg: PHP_INI_SYSTEM; wartość domyślna: NULL...
- CS2 displays dialogs in playback mode...
- The pane displaying local site files is labeled Local Folder and the pane displaying remote site files is labeled Remote Site...
- To define the Dreamweaver remote folder: 1 In the Advanced tab of the Site Definition dialog box, select Remote Info from the Category list...
- - Reszta może uciekać, zanim doliczę do dziesięciu - rzekł, znacząco wywijając dwoma tasakami...
- Mattinao powiódł towarzysza przez gaik, w którym pasożytne rośliny zwrotnikowe wiły się koło gałęzi drzew owocowych, ścieżką idącą wzdłuż...
Smutek to uczucie, jak gdyby się tonęło, jak gdyby grzebano cię w ziemi.
Next, define a web server folder as a Dreamweaver
remote folder.
Defining a remote folder
After defining a local folder, define a web server folder as a Dreamweaver remote folder.
To define the Dreamweaver remote folder:
1 In the Advanced tab of the Site Definition dialog box, select Remote Info from the Category list.
The Remote Info screen appears.
2 In the Access pop-up menu, choose how you want to move your files to and from the server:
across a local network (the Local/Network option) or using FTP.
Note: There are other options in the Access pop-up menu, but this guide doesn’t cover them. For
information about them, see Using Dreamweaver Help.
3 Enter the path or FTP settings to the web server folder you created in “Creating a root folder”
on page 87.
The folder may be on your hard disk or on a remote computer. Even if you created the folder
on your hard disk, that folder is still considered to be the remote folder. The following example
shows a possible Remote Folder path if you chose Local/Network access and your remote
folder is on your Windows hard disk:
Remote Folder: C:\CFusionMX\wwwroot\MySampleApp
For more information on FTP, see “Setting Remote Info options for FTP access” in Using
Dreamweaver Help.
Leave the Site Definition dialog box open. Next, define a folder to process dynamic pages.
Defining a Dreamweaver site (ColdFusion)
89
Specifying where dynamic pages can be processed
After defining the Dreamweaver remote folder, specify a folder to process dynamic pages.
Dreamweaver uses this folder to display dynamic pages and connect to databases while you’re
developing your application.
To specify the folder to process dynamic pages:
1 In the advanced Site Definition dialog box, click Testing Server in the Category list.
The Testing Server screen appears. Dreamweaver needs the services of a testing server to
generate and display dynamic content while you work. The testing server can be your local
computer, a development server, a staging server, or a production server, as long as it can
process ColdFusion pages. In many situations, including setting up for the Trio site, you can
use the same settings as the Remote Info category (see “Defining a remote folder” on page 89) because they point to a server capable of processing ColdFusion pages.
2 Select ColdFusion from the Server Model pop-up menu.
3 In the Access pop-up menu, select the same method (Local/Network or FTP) you specified for
accessing your remote folder.
Dreamweaver enters the settings you specified in the Remote Info category. Leave the
settings unchanged.
4 In the URL Prefix text box, enter the root URL you would enter in a web browser to request a
page in your web application.
To display live data in your pages while you work, Dreamweaver creates a temporary file,
copies it to the website’s root folder, and attempts to request it using the URL prefix.
Note: Dreamweaver makes a best guess at the URL prefix based on the information you provided
in the Site Definition dialog box. However, if the suggested URL prefix is incorrect, correct the
URL or enter a new URL prefix. For more information, see “About the URL prefix” in Using
Dreamweaver Help.
If the folder specified in the Remote Folder text box is
c:\CFusionMX\wwwroot\MySampleApp, then the URL prefix should be as follows:
http://localhost:8500/MySampleApp/
Note: The ColdFusion web server runs on port 8500 by default.
Tip: The URL prefix should always specify a directory, rather than a particular page on the site.
Also, be sure to use the same capitalization you used when you created the folder.
5 Click OK to define the site and dismiss the Site Definition dialog box, then click Done to
dismiss the Manage Sites dialog box.
After specifying a folder to process dynamic pages, upload the sample files to the web server.
Uploading the sample files
After specifying a folder to process dynamic pages, upload the sample files to the web server. You
must upload the files even if the web server is running on your local computer.
If you don’t upload the files, features such as Live Data view and Preview in Browser may not
work properly with dynamic pages. For example, image links might be broken in Live Data view
because the image files are not on the server yet. Similarly, clicking a link to a detail page while
previewing a master page in a browser causes an error if the detail page is missing from the server.
90
Chapter 9: Setup for Sample ColdFusion Site
To upload the samples files to the web server:
1 In the Files panel (Window > Files), select the root folder of the site in the Local View pane.
The root folder is the first folder in the list.
2 Click the blue Put Files arrow icon in the Files panel toolbar, and confirm that you want to
upload the entire site.
Dreamweaver copies all the files to the web server folder you defined in “Defining a remote
folder” on page 89.
The Dreamweaver site is now defined. The next step is to connect to the sample database
installed with Dreamweaver.
Connecting to the sample database (ColdFusion)
During installation, Dreamweaver copies a sample Microsoft Access database to your hard disk.
This section describes how to create a connection to the sample database.
Note: For information on connecting to another database, see “Database Connections for
ColdFusion Developers” in Using Dreamweaver Help.
To create a database connection:
1 If you’re using a remote computer as a server, copy the sample database to the remote computer.
(See “Setting up the database (server on remote computer)” on page 91).
2 Create a ColdFusion data source in ColdFusion Administrator (see “Creating a ColdFusion
data source” on page 92).
3 View the connection in Dreamweaver (see “Connecting to the database” on page 92).
Setting up the database (server on remote computer)
This section applies only if your web server is running on a remote computer. If your web server
is running on the same computer as Dreamweaver, skip to “Creating a ColdFusion data source”
on page 92.
Before attempting to connect to the sample database, copy the database to the remote computer’s
hard disk. If you installed Dreamweaver to its default location, the path on your local hard disk to
the database file (trio.mdb) is as follows: