Register Domain Names - Web Hosting Registration Services

Stop Parking Domain Names
Develop Your Domain Names
 

Using Include Files To Make Changes To All Your Website Pages Instantly

Subscriber Karen Balacek poses the following question.

"I have a template with my menubar and my banner on all my pages. I change the template and save it as the same template file that I used for creating all my pages. Is there a way I can apply that to all my pages instantly or do I have to make the changes manually for each page?"

The simple answer is to use an Include File. The difficult part may be to understand how to use them. Don't be intimidated by this however. Using an Include is not really that complex when you understand the basics of how they work and why.

A lot has been written about this subject. Most is rather technical and at best difficult to understand. This article will cover the basics of how an Include File works, in easy to understand language and explain how you can apply this technique saving yourself time and effort as a result.

What is an Include?

If you are familiar with basic html you know that whatever content you put in the html coding will be displayed through an open browser. The content is placed inside html tags on the same page you want to display.

An Include File contains content that is LOCATED SOMEWHERE ELSE instead of right there inside html tags of the page.

The contents of an Include file will also be dispayed through an open browser just as if the content were right there in the html code. That "somewhere else" is usually at a different location somewhere on your server.

Using specific php type language, the html code tells your browser to go to "anotherplace.html", grab the content and display part or all of it in your browser.

Why Use an Include File?

Why would you want to use an Include File when you can accomplish the same thing in your html coding?

There are a variety of reasons for this, but this one tops my list as the most beneficial.

For the sake of simplicity, lets assume you have a 100 page website and each one of those pages displays the same page header. Lets also assume you just had a beautiful new page header designed and you want it to replace your old one.

If you were use the traditional methods of updating your pages, you would be required to make changes to the html code on 100 pages. That's a lot of work. Even minor changes to that many pages takes time to accomplish.

By using an Include, you make the changes to the Include File, upload it to your server and it automatically updates those 100 pages for you.

The content inside an Include can be anything you can put on a webpage ie.. text, graphics, audio etc.

The format can be any format you use on your web page, ie.. .txt, .html, .asp, .php etc.

A small piece of php code (NOTE: Replace brackets [ ] with < > below)

[?php include('http://www.yourwebsite.com/yourpageheader.html'); ?]

replaces the standard code for your page header in your html code.

[img src="http://yourwebsite.com/yourpageheader.jpg"]

Now when you update your pages you can make changes to ONE file to update hundreds. The beauty of this is there are no limits to the number of Includes you can use on one page.

The Include File originated with the php language, but your pages do NOT need to be in php to use them.

To use an Include File in your html or htm pages you need to add a small .htaccess file to your server. If you do not already have .htaccess file on your server, you can make one in Notepad or any text editor. Starting with a blank page, copy and paste the following code.

#RemoveHandler .html .htm
#AddType application/x-httpd-php .php .htm .html
AddHandler application/x-httpd-php .html .htm

Save the file as .htaccess and upload it to the same folder that contains your index file. If you already have one, update it to include this information.

Copyright 2008 Heather Colman. Graphic Designer Heather Colman helps virtual assistants, coaches, and other professionals online bring visualization and depth to their products with custom 3d product images and website graphics. Visit her site at: CustomDesignGraphics.com

MORE ARTICLES:


Domain name registration is the first step to build a website
In the era of internet, while even the smallest of the business entities thrives for an online presence, it is necessary to understand the starting steps of the process. The online presence of your business is marked by the website that you have and the domain name is the name and address of that website.

Start Your Home Base Business With A Domain Name And Web Hosting
So you want to start an internet business where you can work at home and make tons of money The first part is easy to do

The dos and don'ts of web hosting and domain names
When you make the decision to start a website for your business, it is a big step. Going from the world of offline business where clients are limited to geographical locations to online where the entire world is a potential client can be overwhelming.

The Steps Of Web Hosting Domain Registration
For the many millions of people who have decided to keep pace with the growing popularity of the Internet by launching their own website, they are faced with a variety of decisions necessary to make the most of their online presence. After deciding the nature and content of your website you must then tackle the decisions associated with web hosting domain registration.

Internet Domain Registration - Establishing and Transferring Your Domain Name
If you're in business, one of the most important things to you may be your ability to establish an internet presence. Operating some type of functional web site for your business helps your customers find you, can present additional marketing opportunities through e-commerce, and offers advertising opportunities that you can not get elsewhere.

Cheap Internet Hosting, Business Web Hosting - Choosing The Right Web Host Package
With literally hundreds of web hosting providers competing for your business, it may be confusing to find the one that's right for your web site. A few key considerations can help you narrow down your choices to the most affordable and best options to meet your personal, professional or business web page needs.

New Review Website for Web Hosting Services Web-Hosting-Info.com Launched
Known for websites such as FaxCompare.com, PBXCompare.com and Email-Marketing-Options.com, Zilker Ventures launches its newest comparison and review website for web hosting services, Web-Hosting-Info.com.

Domain Name and Web Hosting Hell
Does GoDaddy really suck?I am in the process of registering more and more domain names so it seems natural to look for the best pricing deal.Registering multiple domain names can add up quickly, especially if you register both the NoDashVersion.

The 'Website' CHECKLIST : Domains, Hosting, Web Design
This article is meant to all who already have a website or who propose to buy it. Website – the term comprises three things : Domain, Hosting (Web space) & Web DesignThere are numerous company offering these services.

How to Select a Domain Name and a Web Host
The domain name for a web site should be relevant to your business and easy to remember With several thousands of domain names being sold each day, it can be a challenge to find the appropriate domain name for your company

Web Hosting And Domain Registration Basics
Web Hosting

Internet Domain Registration – Top 10 Most Frequently Asked Questions on Domain Name Registration
Here are the top ten most frequently asked questions regarding on Internet domain name registration:Q1. Which characters are allowed in Internet domain names?A: For normal ASCII domain names, the letters a-z, the numbers 0-9, and one special character, the hyphen or dash "-".

vFlyer Announces "Domain Plus" For Realtors to Host, Customize Single Property Websites
vFlyer extends one-Stop-Shop Services for Real Estate Professionals to Create Single Property Listings Easier, Faster and More Economical.

Free Domain Name & Cheap Web Hosting Review
Free realm names and cheap mesh hosting plans are all since the web! In fact, slick are thousands and thousands of lattice hosting providers, universe wide, that advance unrecompensed crown names & cheap web hosting.

Website Domain Name Registration Services from Access IT Solutions
Before you start building a website, choosing the right domain name is an important thing to do. Website domain name registration is necessary to have a website. The names are important because they enable clients or potential customers to know about your business or organization.

Develop Your Domain Names | Site Map | Home

Privacy Policy | Copyright/Trademark Notification