For some people i know that you are using a basic HTML site...and having a big menu if you want to add somthing you have to go into every one of the pages and add or remove or edit what you want to do, but with somthing verry simple all you would have to do is edit one file, and all of the pages that have the PHP script on them would suddenly change to what that one file is.
So to start off if you are planning on using this little tirck, the page that you are putting the code on must be a .php page, so instead of 'index.html' it would be 'index.php' this changes none of the aspects of the page except for the fact that you can put php scripts in the page now, if you are unsure how to do this simply open the file in the editing program you use and when it asks what you want the name to be put 'THENAME.php" and it will be saved as a .php file..
now to the script...wherever you want the content of that one file to show, you will need to put this code
<?php include("FILE NAME.html"); ?>
you simply need to replace the FILE NAME with the name of the file in which you want to show. and if it is in a different directory put DIRECTORY/FIILE NAME instead...simple eh..
but now, for the file that you want to put on the pages...all you need to do is make a normal html file or any other file that you have that you want to include with the content, so if you want it to be a menu for example...
<div><b>.:Site Navigation:.</b><br> - <a href="link here">Forums</a><br> - <a href="link here">Contact Us</a><br> - <a href="link here">Employee's</a><br> - <a href="link here">Affiliates</a><br> - <a href="link here">Affiliation</a><br> <b>.:Tutorials:.</b><br> - <a href="link here">CSS</a><br> - <a href="link here">HTML</a></div>
that could be saved as menu.html and you would just have to change FILE NAME to 'menu' and it should show up! just be sure that the file extention is .html *edit* edited it per Tyssen's post, now it DOES NOT have to be a .html file, i have tested it out and it works so that way you dont need to use .html, you can also use any other ones such as .php....who woulda guessed lol..thanx tyssen
well that is about it! my thanx to Phillip, aka webmaster_2006 for clearning up the matter of the page HAVING to be .php, for me!
*edit* edited it per Tyssen's post of clearing it up, thanx! it did mix it up a little>_<
Edited by Albus Dumbledore, 18 February 2006 - 03:02 AM.















