From: Sandy M. <mat...@bt...> - 2003-01-07 12:21:15
|
Not had a reply so I have gone ahead to set up a second WIKI on the same MySQL database and hit a problem. I have set up the database tables fine using a prefix of 'newport_' and in index.php I have enabled 'prefix' => 'newport_' on line 228. When I access the website to set it up I get the error: Parse error: parse error, expecting `')'' in /usr/local/home/httpd/vhtdocs/newportparish.org.uk/index.php on line 228 The full part of this array in index.php is listed below I am using PHPWiki version 1.3.3. Can anyone help, or point me in the right direction? Sandy Matheson _____________________________________ Index.php: $DBParams = array( // Select the database type: 'dbtype' => 'SQL', // 'dbtype' => 'dba', // For SQL based backends, specify the database as a DSN // The most general form of a DSN looks like: // // phptype(dbsyntax)://username:password@protocol+hostspec/database // // For a MySQL database, the following should work: // ///////////////// CHANGE THIS//////////////////////////////////////// 'dsn' => 'mysql://username:password@localhost/databasename' ///////////////// CHANGE THIS//////////////////////////////////////// // // FIXME: My version Pear::DB seems to be broken enough that there // is no way to connect to a mysql server over a socket right now. //'dsn' => 'mysql://guest@:/var/lib/mysql/mysql.sock/test', //'dsn' => 'mysql://guest@localhost/test', //'dsn' => 'pgsql://localhost/test', // Used by all DB types: // prefix for filenames or table names /* * currently you MUST EDIT THE SQL file too (in the schemas/ * directory because we aren't doing on the fly sql generation * during the installation. */ 'prefix' => 'newport_' // Used by 'dba' //'directory' => "/tmp"', //'dba_handler' => 'gdbm', // Either of 'gdbm' or 'db2' work great for me. //'dba_handler' => 'db2', //'dba_handler' => 'db3', // doesn't work at all for me.... //'timeout' => 20, //'timeout' => 5 ); |