Main Menu
| Home |
| Web Design |
| Web Development |
Latest News
- Website Content Development Made Easy - Seriously
- How to Capitalize on Free Content From Podcasts
- Getting Back to Basics With Your Website
- Why Every Brick and Mortar Business Needs a Web Site
- Need a Website? 3 Questions You Should Know Before Doing-It-Yourself Or Before Hiring a Web Designer
- The Importance of Using Keywords in Your Content
- Creating Your Own Business Website
- .Net Dynamic Web Portal Development
- Multimedia Presentations - The New Way to Web Development
- Create a Website - Who Me?
- How Do You Check a Website Before You Buy It?
- Computer Work From Home Jobs - You Can Put Your Web Design Skills to Work
- Website Designing Company in Vancouver
- Maintenance For Website - 3 Important Tests
- Thinking About Getting Website Design Software?
| Using Include Files to Make Changes to All Your Website Pages Instantly |
|
You have a template you use to make changes to your menubar and page header. Is there a way you can apply those changes to all your pages instantly?
What is an Include File? 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. If you understand how CSS style sheets work, it's the same basic concept of an external style sheet. The contents of an Include file will also be displayed 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 replaces the standard code for your page header in your html code. 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. Save the file as (it must be saved exactly this way) .htaccess and upload it to the same folder that contains your index file. If you already have one, update it to include this information. |
| < Prev | Next > |
|---|
My links
Popular
- Importance of Website Development for a Company
- Techniques in Web Development
- Are You Considering Building A Website?
- Do You Want To Create A Website Or A Business Online?
- Are You Vying For Open Source Web Development?
- Web Site Development Company
- Importance of Web Site Content Development
- Four Easy Steps For Building A Website
- Ruby on Rails Framework for Java Technology Developers
- Top 5 Reasons to Start a Web Business If You Are an Athlete or Coach
- Everyone Is Talking Web 2.0 Development
- Overcoming Those Annoying CSS Bugs
- Target Your Market - Get Your Website To Speak To Your Niche
- Easy Web Programming Languages Are Coming
- What To Look For When Hiring A Webmaster?
