SPN Logo   Add Your Site To ExactSeek For Free!
  Advertise in SiteProNews SiteProNews Archives About SiteProNews SPN Privacy Statement FeedBack SiteProNews Homepage SiteProNews Image Map SiteProNews IT Career Center
  Put Your Marketing Efforts on Auto Pilot
    QUICK LINKS
 
JANUARY 8,  ISSUE # 122
Search the Web

Add your Site to ExactSeek
Subscribe
Subscribe to one, or more, of four great newsletters: SiteProNews, our daily Webmaster ezine; NetViewpoint, the weekly ezine that focuses on current and future Net trends; EzineReport, the weekly ezine that evaluates and reviews other ezines; and NoviceNews, a daily newsletter with useful tips and tricks for Net novices and all computer users.

Just enter your email address in the box below and click the subscribe button.

Text HTML Newsletter
SiteProNews
NetViewPoint
EzineReport
NoviceNews

Tip of the Day
If you haven't installed antivirus software by this time, shame on you. It does not matter whether you run a network of ten thousand computers or a cheap home system, you'd better have this basic application not only installed, but regularly updated.

Today's tip is by Richard Lowe, webmaster of Internet Tips and Secrets
 

MyZip.com Downloads
SPN App of the Day
TweakMASTER 1.6 (1.3MB) is a new generation Internet optimizer that promotes faster Internet download speeds by tweaking hidden Windows settings. Ideal for all Internet connections, including dial-up, cable modem, DSL or satellite. Supports all Windows versions as well as AOL 5.0/6.0/ 7.0. Shareware $19.95.

If you have a Webmaster App that you would like listed on the SPN site, send us an email with details to: wapps@sitepronews.com
SPN Site of the Day
Freeware Home is another great free software site. There are 10 major categories to browse with thousands of free apps that are visitor rated. The site also features a Weekly Top Download list, a Top 20 Free CD-ROM list and a list of the Web's Best deals.

Think your web site qualifies as a SPN Site of the Day, send us an email with details to: sotd@sitepronews.com

Must Read Ebooks
In the coming months, we plan to provide our visitors with one of the most comprehensive EBook link libraries on the Web. Check back frequently for new additions. In the meantime, check out our current selection of Commercial and 80 plus Free EBooks.

We welcome authors of EBooks to submit their publications to SPN via email to: ebooks@sitepronews.com
 

Need some good promotion tools to give your web site an edge on the competition? Well, this is a good place to start your search. We'll be adding freeware and shareware promotion software on a regular basis Check out our current selections right now.
 
Submission Tools
Site submission can be a time intensive undertaking. Fortunately, there are growing number of submission applications that can save you time and money. Some are sophisticated and some are pretty basic. You can check out our current picks right here.
 
Link to SiteProNews
Link your site to SiteProNews, the free, daily newsletter for WebMasters and the fastest growing resource site for novice and expert HTML authors on the Web.

Or, Add SPN to your site with just 2 lines of JavaScript code. Top content for your site without any of the work.

Check out the SPN Promotion Partners page. Some great sites have opted to support the SPN newsletter

Recommended Services
ROIbot - A Suite of Marketing Power Tools for Pennies a Day!

Web-Source.net - Your Guide to Professional Web Site Design & Development

PreWired.com - Providing ISPs & Publishers an Instant Web based revenue stream!

Automarketic.com - Skyrocket Sales & Explode Profits With The #1 Online Marketing Machine..

SubmitPlus - Promote your site to 110 search engines... FREE!

Pocket Flier! - Generate 25,000 targeted visitors to your site!

NetMechanic - Web Tools For Site Maintenance, Promotion, Browser Compatibility & More.

Affinity - Robust, reliable Web Hosting for small & medium-sized web sites.

StartBlaze
Prime Web Traffic
For 2 cents/Hit!
 

ExactSeek
EzineHub
NoviceNews
GoArticles
SPN Awards
ROIbot Pro
StartBlaze
Submit Plus
PocketFlier
NetMechanic
Free Money
Magic Words
Testimonials

Using Server-Side Includes
By Tom Dahm
The dirty secret about Web sites is that they're easier to build than they are to maintain. Once your site gets to be bigger than 10 pages or so, making changes to it can be a major time drain. But there's a simple technique you can use to make site maintenance easier: Server Side Includes.

Server Side Includes - called SSIs for short - are a server technology that lets you build your Web pages through a series of reusable components. And it's easier to do than you might think.

MAGIC WORDS THAT BRING YOU RICHES

You are 17 words or less away from a fortune! Do you know all 17 words? Click below to discover the 17 magic words that can change your life.

Click Here For Details

To understand the value of SSIs, we first have to review the problem. Suppose that you build a Web site for your company totaling something like 30 pages. You build all the pages following a basic template like the one shown here.

This page has a masthead with your company logo, a left navigation bar, a content section, and a page footer with copyright and other information. The content section is the only part that really changes between pages on the site; all other elements are the same on all pages.

Now after you've built your site like this, your boss tells you he wants to change the order of the links on your navigation bar. He'd like link #3 to be first in the list, and link #2 to be last.

Great! Now you have to edit all 30 pages in your site and change the navigation section on each page. Wouldn't it be easier if your site used a single copy of the navigation bar that was somehow tied to all your pages? Then you could change the navigation links for the whole site by editing a single file.

That's the idea behind SSIs. You can use them to make elements that are common to all your pages exist in a single, shared file.

For example, take a look at our basic page again. Though it may not look like it, this page was actually built using five separate pages. The pages are:

· The masthead, showing the corporate logo.

· The left navigation bar.

· The content section.

· The page footer.

The fifth page is our basic page itself. This page includes four SSI statements that tell the Web server to include the other pages inside this page.


MULTIPLE AUTORESPONDERS AT AN UNBELIEVABLE PRICE

An automatic marketing system from Automarketic with up to 50 autoresponders that you can use for product announcements, discount offers, affiliate programes, marketing reports, training courses and more. Personalize your messages in text or HTML. Unlimited Automatic Follow Ups At User-Defined Intervals! You can even use Automarketic autoresponders as a newsletter server.

Click Here For Details


The syntax for building an SSI is simple. You can insert a file inside another file using a statement like this:

<!--#include virtual="other_page.htm" -->

This directs the server to look for a separate file called "other_page.htm" in the same directory as the page basic_page.shtml and insert it into the latter page.

The syntax of the SSI consists of a normal HTML comment, followed immediately by the statement "#include" (Be careful with this syntax: any extra white space in this first part of the statement can cause your SSI not to work.). There are actually several different types of SSI commands besides "#include," but include statements like this one are by far the most useful.

The third part of the SSI is the attribute "virtual" followed by the name of the file we want to include. The term "virtual" means that we will specify the location of the included file exactly the same way as if we were creating a hypertext link between the pages. So since both the parent file and the included file are in the same directory, we can include other_page.htm just by specifying its name.

The last part of the SSI is the closing part of the HTML comment.

Notice something interesting about our basic page. Try looking at the source code of the page. You can do this by using the View - Source option on your browser, or click here to view the source code as it's seen by your browser.

Notice that you don't see the SSI statements. That's because SSI is a server-side technology that leaves no fingerprints in the resulting Web page. When the Web server gets a request for a page containing SSIs, it scans every line of the HTML source for SSI statements. When it finds one, it inserts the included file into the HTML source, removing the SSI statement in the process.

To see the source code of our basic page as it really resides on the Web server, click here.

This shows you what the file looks like before server parsing.

Server parsing is an important point to remember about SSIs. If you build a page using SSIs on your desktop computer, the SSI statements won't work. You won't see the results of your SSI until you upload the pages to your Web server.

Even then you probably won't see the result of the SSI. Like CGI scripts, SSIs require some special server configuration before they are enabled. You may need to contact your ISP or Web hosting service and let them know that you'd like to use SSIs in your site.

One final thing to notice about our parent page basic_page.shtml: notice that the file extension is .shtml, and not the usual .htm or html. That file extension tells the Web server that this file includes SSIs. It's a signal to the Web server that it needs to scan the file for SSI statements.

You don't see many files on the Web using this extension. Does that mean that not many people are using SSIs? Not really, since you can configure the Web server to look for SSIs in any type of file. These hidden SSIs give you the benefit of SSIs without the slight security risk you might have with standard SSI specifications.

In the mean time, give SSIs a try in your site. If you find them useful, you may also want to take a look at other "active page" technologies like Microsoft's Active Server Pages and Allaire's Cold Fusion. These technologies take the same basic idea as Server Side Includes to a much more sophisticated and powerful level.

  About The Author
Tom Dahm, COO of NetMechanic, is a recognized authority on HTML and browser compatibility issues. He is a founder of NetMechanic, the online service for Webmasters. Visit the NetMechanic site to find powerful HTML tools, tips and tutorials.


Recommended Webmaster Apps & EBooks

Psychological Triggers
Advanced psychological tactics that will boggle your mind. Learn 30 ways to make prospects buy from you – and how you can use these tactics ethically to double or triple your sales.

The Insider's Guide To Dominating the Search Engines
Introduces you to revolutionary, "tried-and-tested" optimization strategies which will increase your website traffic by 10, 100, or even 1000 times ... GUARANTEED. See results start to materialize in as little as 2 days....and see significant results appear in just 1 month.

EzineAnnouncer - The Ultimate Ezine Promotion Tool
Explode Your Ezine With This Revolutionary New Piece of Software -- Results Are 100% Guaranteed! Now it's easier than ever to launch and promote your ezine. Auto-pilot ezine promotion software shows you where you need to be and does 80% of the work for you!

 

Tell your friends about SiteProNews!
Your E-mail
Friends E-mail
Your Message

 

  SiteProNews now reaches over 6 million Subscribers

Previous SPN Sites of the Day       Previous SPN Tips of the Day       Previous SPN WebMaster Apps of the Day      


©Copyright 2001 Jayde Online, Inc. All rights reserved. Web design by ControlV.