![]() |
||
![]() |
||
| Home About Us Affiliates Job Openings Contact Us History of HM Affiliation Privacy Policy Editorials Trophy Hall HM Forums HM Galleries HM Reviews HM Awards HM Email ![]() Socerer's Stone Chamber of Secrets Prisoner of Azkaban Goblet of Fire Order of the Phoenix Half-Blood Prince Deathly Hallows Other HP Books Book Mistakes Name Origins Recipes ![]() Socerer's Stone Chamber of Secrets Prisoner of Azkaban Goblet of Fire Order of the Phoenix Contact the Cast OoTP Trailer Page ![]() Biography Wizard of the Month Official Site ![]() Magical Decrees Founders Ghosts Houses Staff ![]() Social Order History of Magic Quidditch Ask Merlin Wizard Money Dumbledore's Army ![]() Communication Creatures Transportation Dark Arts Animagus Horcruxes Spells Wands ![]() Azkaban Diagon Alley Leaky Cauldron St. Mungos Hogsmeade Village Other Places ![]() Ask the Webmaster Helpful Websites CSS Tutorial PHP Includes Hosting Guide Photoshop Tutorials HTML Tutorials |
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... <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> that could be saved as menu.html or menu.php and you would just have to change FILE NAME to 'menu.php or menu.html' and it should show up! just be sure that the file extention is .html or .php depending on what you saved it as. |
![]() ![]() ![]() ![]() ![]() ![]()
![]() Link Us Fan Fic Area Fan Art OotP Teaser Trailer OotP International Weekly Myspace Fan ![]() New Staff Members! Updated Information Nov. 1st, 2007 ![]() ![]() Site: Online Forums: Offline Awards: Online Fan Fiction: Online Reviews: Online Layout By: Theresa of ![]() |
|
|
|
|