articlechef.com articlechef.com
   Home Page -> About Us -> Security & Privacy -> Terms & Conditions -> Place Your Link -> Add Article
Search:   
Add Url
 

Jobs & Careers

Estate & Realty

Academics & Education

Children

Healthcare & Medicine

Fashion & Lifestyle

Policies & Law

Science & Research

Travel & Vacation

Automotive

Art & Culture

Finance & Investment

Fitness & Health

Computers & Software

Self Management

Sports & Adventure

Music & Entertainment

Online & Board Games

News & Events

Shopping Online

Drink & Food

Family & Home

Companies & Business

People & Society

 

Home Page –› Computers & Software –› Website Development
 

Building an Easier Site with PHP Modules

 
Author: Mike Mason

Having hundreds of pages to manage can be a lot of work when it comes to revisions, such as changing the site menu or a list of links.

I have found an easier way to keep my editing time to a minimum with using what I call PHP Modules.

For example, we'll build a menu module, we'll cut all of our menu images & links from our pages leaving behind only the empty tables & then create a new page menu.php without any headers and paste our menu code.

Then in the empty tables we'll add the code:
< ?php
include_once "menu.php";
? >

Now the next time I need to change the menu I'll only need to edit menu.php & the other 300 pages will automatically be updated, slick right?

Note: To use this PHP code you'll need to change all of your pages from .HTML to .PHP or use a java script to parse the PHP code. You wont need to change any of your html code as web browsers will render your pages the same way as .html

I recommend changing your pages to PHP because once you start working with PHP you will find a lot free scripts that you can use to make your site more exciting & interactive than with html alone.

Author Bio:
Mike Mason is an expert in this field. Mike has written several articles in the past on this topic.
You can search for this article using: Building an Easier Site with PHP Modules, Computers & Software, Website Development
 
 
 

Related Articles

 
Leave Those Links Blue!
 
Bunny Killers Rewarded For Their Bad Behavior
 
How To Get Root Access Through Your Web Hosting Company
 
Web Promotion - SEO Strategy
 
FAQ about Search Engine Optimization (SEO)
 
Benefits of Joint Ventures
 
What You Need To Know Before Paying For Another Moneymaking Program Online
 
7 Steps to Your Personal Online Money-Making Empire
 
Paralyzed by Website Feature-itis?
 
Internet Marketing Tools: Part Six HTML Basics
 
 
 
Home Page -> Security & Privacy -> Terms & Conditions  
Copyright © 2008 www.articlechef.com All Rights Reserved.