Designing Websites is getting harder, these Dreamweaver tutorials aim to tip the balance and will allow you to quickly get up to speed on web page design. All our Dreamweaver Tutorials are taught by leading experts and are easy to follow.

All Dreamweaver tutorials

Advanced Dreamweaver tutorials MX

Dreamweaver Tutorials on MySQL & PHP



Dreamweaver Tutorials Server side includes

Using Server side code means that when open a document that’s on a web server, the server processes the include instructions and creates a new document in which the include instructions are replaced by the contents of the included file. The server then sends this new document to the browser. Dreamweaver MX2004 allows you to use PHP as a include with we shall cover in later Dreamweaver Tutorials, but first we shall give you a over view of what server side include does.

This chapter is designed to give you a primer for the next few Dreamweaver Tutorials in which we will cover server side scripting, this training course is also designed to give you a working knowledge of PHP and MySQL.

In Dreamweaver, you can preview documents just as they’ll appear after they’re on the server, both in the Design view and when you preview in the browser.

Placing a server-side include in a document inserts a reference to an external file; it doesn’t insert the contents of the specified file in the current document. Dreamweaver displays the contents of the external file in Design view, making it easier to design pages, to help you understand this, it's like a library item change the one file, and it changes on all the pages in your site, if you missed the training course on library items you may wish to go over those tutorials again .

You can't edit the included file directly in a document. To edit the contents of a server-side include, you must directly edit the file that you’re including. Any changes to the external file are automatically reflected in every document that includes it.

There are two types of server-side includes: Virtual and File. Choose which to use depending on what type of web server you use:

If your server is an Apache web server, choose Virtual. (This is the default choice in Dreamweaver.) In Apache, Virtual works in all cases, while File works only in some cases.
If your server is a Microsoft Internet Information Server (IIS), choose File. (Virtual works with IIS only in certain specific circumstances.) 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.
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.
Some servers are configured to examine all files to see if they contain server-side includes; other servers are configured to examine only files with a particular file extension, such as .shtml, .shtm, or .inc. If a server-side include isn’t working for you, ask your system administrator if you need to use a special extension in the name of the file that uses the include. (For example, if the file is named file1.html, you may have to rename it to file1.shtml.) If you want your files to retain .html or .htm extensions, ask your system administrator to configure the server to examine all files (not just files with a certain extension) for server-side includes.

Tutorials online Training CDs and courses