General Statistics
Total Posts: 276473
Total Topics: 4684
Online Today: 22
Online Ever: 127, on March 13, 2007, 12:56:10 PM
Users Online
Totals
Users: 7
Guests: 7
Total: 14
Index Pages: [1]
LrsDude    Topic opened May 16, 2006, 12:06:22 AM

Renown: +10/-0
Offline Offline

Posts: 352

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
Logged

My website is awesome, don't deny it.

Post in the Blockhead SubForum!

Featherfall is HERE.
sinic Reply #1 in Re: PHP/XML help — Posted May 31, 2006, 12:45:32 PM
Certified Organic

Renown: +124/-14
Online Online

Posts: 7,216

Slack.

This might get more response if it got kicked over to the "Help!" forum.  If you want me to I can move it there (provided you haven't gotten the advice already).
Logged

"When people are free to do as they please, they usually imitate each other." -Eric Hoffer

House has a posse.
Puppy cam is:  Offline

12595_mr._tester.png
Index Pages: [1]
  |  Reply