Creating Web Pages
WebSuite supports the creation and use of HTML web pages created using standard ASCII text. These are typically created using an editor or web page generator and saved using the HTM or HTML file extension.
WebSuite does not make the distinction between upper and lowercase characters, and likewise files can be saved with either HTM or HTML extension. For example, the following names represent the same file to WebSuite:
index.htm
index.html
INDEX.HTM
INDEX.HTML
|
In either case, when a user requests one of the above mentioned files, WebSuite will first look for the index.htm and INDEX.HTM file. If not found, it will then search for the index.html and INDEX.HTML file. If still not found, the server will generate the HTTP error: 404 - FILE NOT FOUND. An exception is if an index.ap file exists, in which case the server will process the Active Page associated with the index.ap file. See the ACTIVE PAGE section of this guide for additional information.
In addition to the web page file name, you can also specify the location of the file within the server. This is accomplished through the use of file directories. WebSuite has a default directory structure that includes the following (this assumes that WebSuite was installed on the C: drive of your computer):
C:\SDWEB
C:\SDWEB\HOME
C:\SDWEB\HOME\IMAGES
C:\SDWEB\HOME\SYSTEM
C:\SDWEB\HOME\CHAT
|
The \SDWEB directory includes the primary WebSuite executables and data files as well as the main log file for server activity. It, and everything else on your computer, is protected from outside access through WebSuite's built-in firewall. The only files and directories that are accessible via the server are those located in the \SDWEB\HOME directory or below. See the SECURITY portion of this guide for additional information regarding the firewall.
The \SDWEB\HOME directory is the top-level directory that is accessible through the server. Anything that you place in the home directory or below can be viewed by anyone with a browser unless otherwise secured.
The other default directories are used to house various WebSuite files and subsystems.
Any file can be added to a server directory, however the INDEX file has special meaning. If a user requests access to a specific directory without otherwise specifying a file, WebSuite looks to see if an INDEX.HTM file is present. If so it will present the file to the user or generate a 404 error if one cannot be found.
If you prefer to use another default file other than INDEX, you can access the administration system to change it to any name you want.
Typical web pages include a combination of page content and command instructions in the form of HTML tags. The file begins with the <HTML> tag and ends with the </HTML> tag. Everything in between consists of content and additional tags. A sample web page might look like this:
<html>
<body>
Here is some text to be displayed on the page
</body>
</html>
|
See the HTML guide referenced on the development page of the West Coast web site for additional information.
(c) 2001 by West Coast Web Adventures, Inc., All Rights Reserved
|