Using Server Side Includes to Simplify Your Web Design

An "include" file is a piece of code that can be put into a seperate file -- for example -- your navigation bar -- and then "included" in a number of other pages. This has the very useful advantage of allowing you to retain consistency over a very large number of pages, and then make changes to all of those pages by just changing the include file.

For instance, say you want each page in your site to include a short paragraph that uniquely identifies your site. I normally call this a "site-id". It would read something like this:

forsaletours.com - provides information and sources for virtual tours for the real estate industry. We explain different methods of combining video and audio to produce virtual representations of your home to enhance its value and to make the purchasing experience of potential buyers better than it otherwise might be.

To set this up so it appears in a host file as an "include", you normally have to do three things:

1. Make sure your server allows SSI (server side includes). If you have access to your web site control panel you should be able to figure this out. Or if not, ask your web host technical support people.

2. Create a "host" file and give it a file extension so your server recognizes it contains include files. A common extension is .shtml

3. Create your include file. It can usually have any of a number of different extensions: .html, .htm, .php, even .txt. This is the file that will be included within other files.

4. Embed the correct code within your .shtml file to point to the include file. If the include file and host file are in the same folder on the server, it will look like this:

<!--#include file="file_name.html"-->

If the include file is located in a different folder (on the same server), the code will look like this:

<!--#include virtual="folder_name/file_name.html"-->

In the above example you have to make sure the relative path to the include file is set correctly.

Now when you want to make a global change to, for instance, your "site-id", you just have to change the include file (once), and this change will be populated through all the pages that include that file.

Include files can be put to many creative uses that allow you to do things that are otherwise very impractical. And if you have a website with a large number of pages, this technique can save you a great deal of time.

For more web design and online marketing tips see the forsaletours.com

Rick Hendershot is a marketing consultant, writer, and internet publisher who lives in Conestogo, Ontario, Canada. He publishes several websites and blogs, including forsaletours.com. This network provides an inexpensive way to advertise your website, and get as many as 100 low cost links.

Airbnb cleaning service Arlington Heights ..
In The News:

AI phishing scams now use voice cloning and deepfake technology to trick victims, but Kurt "CyberGuy" Knutsson reveals warning signs to watch for.
Inversion Space unveils Arc, a reusable reentry vehicle that can deliver up to 500 pounds of cargo from orbit to anywhere on Earth in under an hour.
Red flags like processing fees, urgent countdowns and requests for full Social Security numbers expose fraudulent settlement sites targeting consumers.
Comprehensive analysis of Google Maps, Waze and Apple Maps examines usability, routing accuracy, data handling and features across the top navigation platforms.
Expert analysis reveals whether wired Ethernet or wireless Wi-Fi connections are safer for home internet use, plus practical steps to secure your network from attackers.
Australian construction robot Charlotte uses sand, crushed brick and recycled glass to 3D print fireproof, floodproof homes with reduced carbon footprint.
Cybercriminals are using fake invitation emails to trick recipients into downloading malware and stealing personal information and data.
Flying drones could help retailers fight a 93% increase in theft rates as Flock Safety promotes airborne security systems to track suspects and deter crime.
The Fox News Artificial Intelligence Newsletter brings you the latest news on the emerging technology every Saturday, highlighting top stories.
Hacker group Radiant stole data from 8,000 children at Kido nursery chain, demanding ransom and directly contacting parents with intimidation tactics.
As 18 states implement bell-to-bell cell phone bans, creative students use Google Docs, iMessage on MacBooks and Post-It notes to stay connected in class.
A sheriff's captain says deputies often spend hours writing reports between calls, but Axon's AI program, Draft One, helps them save crucial time in the field.
Sora 2, OpenAI's new video-generation app, can create AI-generated videos based on a singular prompt. The results are both mind-blowing and terrifying.
iPhone and Android users can reduce Wi-Fi calling battery drainage through settings adjustments, background app limits and stronger Wi-Fi connections.
Work email scams are becoming harder to detect as criminals use AI and spoofed addresses to trick employees into opening malicious attachments and links.
From her Arizona living room, Christina Chapman ran a covert hub that helped North Korean operatives infiltrate U.S. firms, netting $17 million in stolen salaries.
UC Santa Barbara researchers developed a soft robotic intubation system that achieved 100% success rates for experts and 96% for paramedics with minimal training.
Scammers exploit probate filings to target grieving families with fake fees and debts, Kurt "Cyberguy" Knutsson reports.
Automotive giant Stellantis becomes latest victim of widespread Salesforce breaches affecting companies like Google, Cisco and Adidas this year.
A woman from Washington reunited with her missing Maine Coon cat Louie after 11 days using Love Lost, a free AI-powered pet recovery platform.
Expert cybersecurity tips help Mac owners remove malware infections and strengthen defenses with antivirus software, password managers and system updates.
Meta's AI chatbot training rules bans sexual roleplay with minors and block access to child abuse material as regulators scrutinize its safety measures.
Online banking users face a new threat: web injection scams that overlay fake pop-ups to steal logins. Here’s how to spot them and protect your accounts.
Meta introduced Teen Accounts to Facebook and Messenger while launching a School Partnership Program for U.S. educators to report bullying within 48 hours.
Executive order signed by President Donald Trump tasks Robert F. Kennedy Jr.'s MAHA Commission with using AI to find new cures for childhood cancers.

How to Use Sliced Graphics to Layout Your Web Site

The problem with designing your site as a graphic, is... Read More

Increase Sales on Your Website! Use Graphics!

How many times have you clicked on a website only... Read More

How Not to be Ripped Off by Your Website Designer

As web designer my self, I have had the unfortunate... Read More

10 Nifty Ways to Prolong Your Visitors at Your Website

Increasing the length of time a visitor is on your... Read More

Web Site Templates and Their Benefits

Unarguably, the most important part of your website is content.... Read More

Website Polls For You And Your Visitors

Setting up a survey on your site is extremely simple... Read More

How to Choose Web Design Company?

Before deciding on which web design company to choose, you... Read More

Build It And Build It Cheap!

There are several very good reasons why you should consider... Read More

Tips for a Successful Website for Any Organization, NGO or GO

Most NGOs (Non-Governmental Organizations) don't understand these important aspects of... Read More

Five Common Web Design Mistakes

There are often many mistakes encountered when creating a webpage... Read More

Choose & Use the Best Colors, The Psychology of Color

Are you using the best colors for your web site?... Read More

Give Your Website A Chance

I often wonder how serious people are when it comes... Read More

How To Choose A Website Designer

When you're self-employed, choosing a website designer is a crucial... Read More

Small Business Website Design - How to Get Professional Results on a Shoestring Budget

Just because you are a small business with an even... Read More

4 Things That Make A Web Site Great

First you need original content. Content is the heart beat... Read More

How To Get A Pay Raise From Your Web Site

How many of the visitors to your web site take... Read More

Do You Own Your Web Site Design?

Your web site has been up for a few months... Read More

Design Your Site For Your Customers

The most important person that you need to please when... Read More

Other Ways to Look at Things

Many people today are tired of the Microsoft software that... Read More

Understand Your Color

Any design on a web application involves the effective input... Read More

Website Design: Redecorate Your Web Site To Increase Sales

Getting traffic to your website is not the only factor... Read More

Making Good Websites that Stand Out

Websites, there's literally billions of them out there in cyber-space.... Read More

Click Here

See, works every time. Seriously now, for some reason people... Read More

Website Promotion Ideas: 10 Tips On How To Use Your Picture Effectively To Increase Your Sales

Seeing is believing.One trick to increase your visibility as well... Read More

Owning Your Own Web Site Is A Must

Owning your own website is a must if you are... Read More

reliable maid service Winnetka ..