function db_connect(){
$ini_file = "/var/www/vhosts/h138457.web6.servicehoster.ch/db.ini";
$config = parse_ini_file($ini_file);
define("SECURE",$config['secure']);
$connection = mysqli_connect($config['servername'], $config['username'], $config['password'], $config['db']);
if(mysqli_connect_errno()){
die("Failed to connect to Database :
". mysqli_connect_error());
}
// Change character set to utf8 (05.04.2019)
mysqli_set_charset($connection,"utf8");
return $connection;
}
?>
Fatal error: Uncaught Error: Call to undefined function db_connect() in /var/www/vhosts/h138457.web6.servicehoster.ch/web/index.php:27
Stack trace:
#0 {main}
thrown in /var/www/vhosts/h138457.web6.servicehoster.ch/web/index.php on line 27