Macromedia dreamweaver 8-using dreamweaver User Manual

Page of 1030
Working with server-side includes
593
If you linked to an external script file, the file opens in Code view, where you can make 
your edits. 
3.
Edit the script and click OK. 
For more information, click the Help button in the dialog box. 
Working with server-side includes 
Server-side includes are instructions to the web server to include a specified file in a web page 
before serving the page to the browser. For more information, see 
You can use Dreamweaver to insert server-side includes in your pages, edit the includes, or 
preview pages containing includes.
Inserting a server-side include
You can use Dreamweaver to insert server-side includes in your page. 
To insert a server-side include:
1.
Select Insert > Server-Side Include.
2.
In the dialog box that appears, browse to and select a file.
By default, Dreamweaver inserts a File type of include. 
3.
To change the type of the include, select the server-side include in the Document window 
and change the type in the Property inspector (Window > Properties), as follows:
If your server is an Apache web server, select Virtual. In Apache, Virtual works in all 
cases, while File works only in some cases.
If your server is a Microsoft Internet Information Server (IIS), select File. (Virtual 
works with IIS only in certain specific circumstances.)
For other kinds of servers, or if you don’t know what kind of server you’re using, ask 
your system administrator which option to use.
NO
TE
If there is code between the script tags, the Script Properties dialog box opens even 
if there is also a link to an external script file.
NO
TE
Unfortunately, IIS won’t allow you to include a file in a folder above the current 
folder in the folder hierarchy, unless special software has been installed on the 
server. If you need to include a file from a folder higher in the folder hierarchy on 
an IIS server, ask your system administrator if the necessary software is installed.