Glom Posted October 11, 2006 Share Posted October 11, 2006 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 More sharing options...
justsomeguy Posted October 11, 2006 Share Posted October 11, 2006 It's a fine way to do things, and makes sense if you are reusing large parts of code across your pages. It doesn't affect load time to any measurable degree.So what's the connection between that, your game, and feet? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now