Table.php
DB.php
AdminUpdateDB.php
DBConfig.php
AdminConfig.php
where each file corrosponds to a class. The problem is that several of the classes require others to be included (eg DB needs DBConfig and Table, AdminUpdateDB needs AdminConfig and DB). They all work fine individually (as classes, tested as individual html pages, no errors occurring) yet as I started to add it all together nothing parsed. Or a page would partially parse, hit an include and stop. So I figure that there are include/require clashes (and i've tried all possible combinations of require/include/require_once) and decided to create a file with all related includes, to be added as a header to any file that needs one (or more of the classes), which is:
Code: Select all
<?php
/*
* Created on 01/03/2008
*
* Include file to include all classes where necessary
* should be included on any output page that requires classes....
*/
require_once("./Admin/Table.php");
require_once("./Admin/DB.php");
require_once("./Admin/AdminUpdateDB.php");
require_once("./Admin/DBConfig.php");
require_once("./Admin/AdminConfig.php");
?>
Sidenote: efficiency for this section of the site is irrelevant as its an admin section only. The public domain does not require either of the Admin pages...