Building an Easier Site with PHP Modules Keyword Discovery
Self SEO Store  
SEO forum
Website templates  
Flash templates  
Articles archive
Submit your article

Register
Login

Search
XML news feeds
Free RSS news reader
Contact
Advertising  

Best hosting reviews.
Free Internet & IT Magazines.


AddThis Feed Button


Google ban checker PHP script

This script allow you to check if a particular website is banned from Google index

Only $9.95


Coming soon ...

Melbourne Web Design
Great AJAX powered File Upload Script - Includes a turnkey website

Your text ad here ?
Only $10 per month


Building an Easier Site with PHP Modules

Posted by Advanced Search Email Address: Your Name: Got a on: 2005-10-11 22:07:06

Self SEO > Web Development Articles


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.

MikeMason.org offers a free website building forum, Web Hosting, Domain Names and Website Design.







Print this article    Tell a friend

Related Articles

Post New Comment

This site does not allow anonymous comments. Registered members can login to participate. Registration is free and takes only a few seconds