DOCUMENT_ROOT is a php reserved variable to automatically fine out the root, but here's config.php anyway:
PHP Code:
<?php
require_once("class.php");
//EDIT HERE START
$dbserver = "bilbo.teach.cs.keele.ac.uk:3306";
$username = "u1r08";
$password = "xxxxxxx";
$database = "wap";
$wapurl = "http://www.teach.cs.keele.ac.uk/prin/u1r08/wap/wap.php";
$urltoindex = "http://www.teach.cs.keele.ac.uk/prin/u1r08/wap"; //path where the script files reside in remember NO trailing slash
$hostpage = "http://www.teach.cs.keele.ac.uk/prin/u1r08/wap/uploaded/"; // directory on server where files are saved remember trailing slash
$timeallowed = 360; //seconds the file should remain on the server
$allowedsize = 2097152; //allowed size in bytes
//EDIT HERE END
$db = mysql_connect($dbserver, $username, $password);
mysql_select_db($database,$db);
?>