Navigation

:Home
:Videos
:Podcast
:Current Projects
:Store
:Articles
:Game Reviews
:Downloads
:Contests
:Flash Games
:Patch Archive
:Contact Us


 
News
ADBZRPG5 Patch 5.4.4 was released on 3/29/12. You may see a full list of changes here.

 
News
:Link Us
:Tools
:Tutorials
:Free Hosting

 
Affiliates

Hellsing Episodes

The Game Heroes

Nintendo DS accessories

Angry Birds

Angry Birds Rio


 
What is your favorite genre of game to play




View Results
Free poll from Free Website Polls

 
 

What It Does:

The Php include is used to edit content that will show up on multiple pages instead of having to edit every single page of your site when you make a change. I personally use this for the links on my navbar because if I add a link then I only have to add it once instead of multiple times. It is a time-saver and something that you really need to implement onto any site.

The Code:

First, rename all of your pages to end in .php except for the page in which you are recalling your content. For example "menu.html" is where I keep my navbar.

Next, add this line of code to any page you want the content to appear on where you want it to show up:

<?php require("menu.html"); ?>

Of course you can change "menu.html" to anything you want. On the "menu.html" page, put anything you want to be included.

 


 




eXTReMe Tracker



Content Copyright 2012 Penguin Run Games. Layout created by www.zymic.com