-3
$CONFIG[dbserver] = 'localhost';
$CONFIG[dbuser] = 'test';
$CONFIG[dbpass] = 'rehrsdfvseg'
$CONFIG[dbname] = 'test';  

I get this error, what can I do?

[20-Feb-2014 19:32:20] PHP Notice: Use of undefined constant dbserver - assumed 'dbserver' in /home/knul/public_html/porr/setup/config.php on line 2

[20-Feb-2014 19:32:20] PHP Notice: Use of undefined constant dbuser - assumed 'dbuser' in /home/knul/public_html/porr/setup/config.php on line 3

[20-Feb-2014 19:32:20] PHP Notice: Use of undefined constant dbpass - assumed 'dbpass' in /home/knul/public_html/porr/setup/config.php on line 4

[20-Feb-2014 19:32:20] PHP Notice: Use of undefined constant dbname - assumed 'dbname' in /home/knul/public_html/porr/setup/config.php on line 5

Community
  • 1
  • 1

1 Answers1

1

There is two possibilities. Or your configuration are in array, and so you need to quote around the keys like this $CONFIG['dbserver']

Or dbserver etc are PHP constants, defined earlier with define function.

vekah
  • 980
  • 3
  • 13
  • 31