Thread: DPS Computing
View Single Post
  #9 (permalink)  
Old 20-04-2007, 15:19
sabian1982 sabian1982 is offline
Member
 
Join Date: Nov 2006
Posts: 46
Default

Quote:
Originally Posted by DPS Computing View Post
For example, at the moment my website hosting is a few hundred pages, say I wanted to add one item to the navigation menu, how would I do it. Would I have to manually add this to all of the few hundred pages?
The simplest option is to use what are called include files.

You create a simply file with your navigation in:

ie navigation.inc.php or navigation.inc or navigation.php (the first options is the most secure from a php point of view although as your not using dynamic data it isn't really an issue).

Then you add it in the specific location using the following code:

Take a look at this tutorial, i think it pretty much sums up the best way to do it...

http://www.tizag.com/phpT/include.php
Reply With Quote