MyBB Community Forums

Full Version: Parse error: syntax error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an error in my config.php.

Parse error: syntax error, unexpected T_STRING in /home/content/81/11146581/html/forums/inc/config.php on line 15

The error is under database hostname
Please help.

<?php
/**
 * Database configuration
 *
 * Please see the MyBB Docs for advanced
 * database configuration for larger installations
 * http://docs.mybb.com/
 */

$config['database']['type'] = 'mysql';
$config['database']['database'] = 'database-name';
$config['database']['table_prefix'] = 'mybb_';

$config['database']['hostname'] = 
'darkphaze.db.11146581.hostedresource.com;
$config['database']['username'] = '***';
$config['database']['password'] = '***';

/**
 * Admin CP directory
 *  For security reasons, it is recommended you
 *  rename your Admin CP directory. You then need
 *  to adjust the value below to point to the
 *  new directory.
 */

$config['admin_dir'] = 'admin';

/**
 * Hide all Admin CP links
 *  If you wish to hide all Admin CP links
 *  on the front end of the board after
 *  renaming your Admin CP directory, set this
 *  to 1.

i fixed it.

'darkphaze.db.11146581.hostedresource.com;

Had to be

'darkphaze.db.11146581.hostedresource.com';

With a '
replace $config['database']['hostname'] = 'darkphaze.db.11146581.hostedresource.com;

with $config['database']['hostname'] = 'darkphaze.db.11146581.hostedresource.com';