Well, for some reason, the include file keeps timing out whenever I try to load it by itself, so there must be a problem with it. I'll post the full source here, if any of you can help me, please do:
<?php
echo "beginning";
/ turn on verbose error reporting (15) to see all warnings and errors /
error_reporting(15);
/ define a generic object /
class object {};
/ setup the configuration object /
$CFG = new object;
$CFG->dbhost = "localhost";
$CFG->dbname = "hpg";
$CFG->dbuser = "hpg";
$CFG->dbpass = "stacbr";
$CFG->wwwroot = "hpg.ehnet.org/contacts";
$CFG->dirroot = "var/virtual/hpg.ehnet.org/html/contacts";
$CFG->templatedir = $CFG->dirroot . "/templates";
$CFG->libdir = $CFG->dirroot . "/lib";
$CFG->imagedir = $CFG->wwwroot . "/images";
$CFG->wordlist = $CFG->libdir . "/wordlist.txt";
$CFG->support = "support@campuseyecentre.com";
echo "middle";
/ define database error handling behavior, since we are in development stages
we will turn on all the debugging messages to help us troubleshoot */
$DB_DEBUG = true;
$DB_DIE_ON_FAIL = true;
/ load up standard libraries /
require("/lib/stdlib.php");
require("/lib/dblib.php");
require("/lib/coolib.php");
require("/lib/cart.php");
/ setup some global variables /
$ME = qualified_me();
/ start up the sessions, to keep things clean and manageable we will just
use one array called SESSION to store our persistent variables. */
session_start();
session_register("SESSION");
/ initialize the SESSION variable if necessary /
if (! isset($SESSION)) {
$SESSION = array();
}
/ initialize the CART objct if necessary /
if (! isset($SESSION["cart"])) {
$SESSION["cart"] = new Cart;
}
/ connect to the database /
db_connect($CFG->dbhost, $CFG->dbname, $CFG->dbuser, $CFG->dbpass);
echo "end";
?>
The three echo statements were added by me to try to debug the script.