Those of you who carefully read the Blogginator on my site are probably aware that I'm reorganizing my old pages to pull their code from a template. But I wonder if there's an easier way than the way I'm doing it. Does anyone know anything about XML, and how to implement that in a navigable archive? Or would there be something else in PHP that would do the job more easily/flexibly?
Example: Right now
my code for this page looks like this:
<?php include("../btemplate/btemplate1.php"); ?>October 6th, 2003
<?php include("../btemplate/btemplate2.php"); ?>Poop Joke: The Next Generation
<?php include("../btemplate/btemplate3.php"); ?>bcomics/b56.jpg
<?php include("../btemplate/btemplate4.php"); ?>bcomics/b57.jpg
<?php include("../btemplate/btemplate5.php"); ?>HAHAHA CLING-ONS HAHAHA TEEPEE HAHAHA ASS WIPING HAHAHA!
<?php include("../btemplate/btemplate6.php"); ?>../barchives.php
<?php include("../btemplate/btemplate7.php"); ?>blockhead55.php
<?php include("../btemplate/btemplate8.php"); ?>blockhead57.php
<?php include("../btemplate/btemplate9.php"); ?><?php include("blog56.php"); ?>
<?php include("../btemplate/btemplate10.php"); ?>
Everything that comes between the non-redundant parts of the code are in those ten template files. Is there a better way to do this? Thanks in advance! -Lars