Monday 13 November 2017

PHP Notice: Use of undefined constant dbserver - assumed 'dbserver'

$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


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...