hey
i am getting this message.
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/adam07/public_html/forum/alice/src/admin/dbprefs.php on line 51
The code is
Code:
<?php
/*
Program E
Copyright 2002, Paul Rydell
This file is part of Program E.
Program E is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Program E is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Program E; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
//Disable Error Reporting Since this code needs alot of work to become completely clean and error free under stict php setups.
//error_reporting(0);
# Turn this off in case people have it on.
set_magic_quotes_runtime(0);
# Can't turn off magic quotes gpc so just redo what it did if it is on.
if (get_magic_quotes_gpc()) {
foreach($_GET as $k=>$v)
$_GET[$k] = stripslashes($v);
foreach($_POST as $k=>$v)
$_POST[$k] = stripslashes($v);
foreach($_COOKIE as $k=>$v)
$_COOKIE[$k] = stripslashes($v);
}
define("LOOPINGERRORMSG", "Oops. I wasn't paying attention. Tell me again what is going on.");
define("LOOPINGLIMIT",75); // -1 for no limit
define("RANDOMCHANCECLEAN",200); // -1 to never check
define("MINUTESTOKEEPDATA",300); // -1 to keep forever
# This is where all the AIML and startup.xml resides
$rootdir= "http://www.virtualchat.ej.am/forum/alice/aiml/";
require('http://www.virtualchat.ej.am/forum/includes/config.php');
$DB_HOST=$config['MasterServer']['servername'] "localhost";
$DB_UNAME=$config['MasterServer']['username'] "adam07_chat";
$DB_PWORD=$config['MasterServer']['password'] "liverpool21";
$DB_DB=$config['Database']['dbname'] "adam07_vitrual";
$boterrors="";
mysql_connect($DB_HOST,$DB_UNAME,$DB_PWORD) or $boterrors = $boterrors . "Could not connect to database.\n";
@mysql_select_db($DB_DB) or $boterrors = $boterrors . "Unable to select database\n";
?>
I cant figure out the problem so could someone help me,thanks
|