Jump to content

My game is a foot


Glom
 Share

Recommended Posts

I am thinking about converting my website to php. Why you ask? For a laugh!Anyway, I might be close to cracking it.You can see a trial page made using php here.This is how I did it.

<?php$chapter="Fuel cycle";$page="Heel-deep in it";$update="mktime(0,0,0,10,11,2006);$prev=array("economics","Paying for it");$next=array("decom","Decommissioning");?><?php include("northpart.php"); ?>//All the content<?php include("southpart.php"); ?>

So basically, I made two associated php files. If you look at the source for the page, "northpart.php" contains all the HTML from the opening of the "content" container upwards. "southpart.php" contains all the HTML from the closing of that container downwards. The titles, next/prev links and update stamps are in those files, but the variables allow them to be entered.Is this a particularly proper way to do it?Would it adversely affect the load times?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...