Geoff,
Code for std.php
-----------------------------------------------------
<?php
/*
require("includes/sitedef.php");
require("classes/template.php");
require("classes/pages.php");
require("classes/std.php");
include("includes/printcheck.php");
if(isset($page) && file_exists("templates/".$page.".tpl"))
{
$tpl_page = new Template("templates/".$page.".tpl");
$content = $tpl_page->template;
$title = "";
}
elseif($id)
{
$std = new Std("includes/sitedef.php", $id);
require("includes/security.php");
$std->print = $print;
$content = $std->getPage();
$title = $std->getTitle();
}
else
{
$content = "No page supplied to std.php";
}
$values = array( "main" => $content, "title" => $title );
$tpl->parse($values);
$tpl->output();
?>
-----------------------------------------------------------------
"Geoff Berrow" <bl******@ckdog.co.uk> wrote in message
news:8a********************************@4ax.com...
I noticed that Message-ID: <20040730084100.213ecaa4@lapsvin> from Anders
K. Madsen contained the following:
Intalled PHP and made the associations in IIS. The page comes up and
reports various PHP errors - please veiew page to see problem.
Hmm, I see no error but one produced in the script std.php, not by PHP
itself though, but by the script...
Me neither. I notice the links have query strings, is there a database
associated with this site by any chance or is there just a series of
numbered pages? It may be that the script has been written assuming
register globals is on (which it won't be on your new install). Try
looking at what it is doing with the id variable or failing that, post
the code for std.php in here.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/