Technical Help & Discussion > Website Design & Programming

syntax error

(1/6) > >>

davy51:
Im trying to set up a forum and am having problems
I am getting this error

Parse error: syntax error, unexpected '[' in \\nawinfs06\home\users\web\b2000\*******\Forum\includes\config.php on line 27


Its bugging me
I nee d help lol

sam:
what forum software are you trying to setup?

sounds like for some reason the php has a '[' where their should not be one in the config file. If you post the whole code - or the code around line 27 I'm sure we can fix it.

Simon:
That is, we're sure YOU can fix it, Sam.  ;)

davy51:
vBulletin, latest version Sam


This is what i have exactly
 and getting an error




//   ****** DATABASE TYPE ******

['DB_TYPE'] = "mysql"
//   ****** DATABASE NAME ******
"********.startlogicmysql.com".
$config['Database']['smoke_forum_2009'] = 'forum';gr
$config['Database']['smoke_forum_2009'] = 'forum'
//   ****** MASTER DATABASE SERVER NAME AND PORT ******

values.
$config['MasterServer']['*******.startlogicmysql.com'] = 'localhost';
$config['MasterServer']['port'] = 3306;


//   ****** MASTER DATABASE USERNAME & PASSWORD ******

"********.startlogicmysql.com". $config['MasterServer']['***_*_****'] = 'root'; $config['MasterServer']['**-*********'] = '';



of course the stars replace personal info

sam:
assuming this copied correctly then I think there are a number of isses. The first is that there appears to be a number of syntax errors - did you edit the file much? The big issue is at the end of each line there should be a  ";" this is the end of line command and I would expect to see this on the first line like:


--- Code: ---['DB_TYPE'] = "mysql" ;
--- End code ---

according to the vBulletin manual it should be declared like so:


--- Code: ---$config['Database']['dbtype'] = 'mysql';
--- End code ---

actually the vBulletin board manual for config.php looks quite different: http://www.vbulletin.com/docs/html/main/config.php Have you had to do much editing?

Navigation

[0] Message Index

[#] Next page

Go to full version