Notice: Undefined index: fmt in /var/www/html/fmt/fmt_v3/101_v9/api/news_bernama.php on line 28
Warning: include(config_v3.php): failed to open stream: No such file or directory in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 24
Warning: include(config_v3.php): failed to open stream: No such file or directory in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 24
Warning: include(): Failed opening 'config_v3.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 24
Notice: Undefined variable: hostname in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 26
Notice: Undefined variable: database in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 26
Notice: Undefined variable: username in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 26
Notice: Undefined variable: password in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 26
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)' in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php:26
Stack trace:
#0 /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php(26): PDO->__construct('mysql:host=;dbn...', NULL, NULL, Array)
#1 /var/www/html/fmt/fmt_v3/101_v9/api/news_bernama.php(32): Database2->__construct('config_v3.php')
#2 {main}
thrown in /var/www/html/fmt/fmt_v3/101_v9/api/Database2.php on line 26