<?php
//Note: This file should be included first in every php page.
error_reporting(E_ALL);
ini_set('display_errors', 'On');
define('BASE_PATH', dirname(dirname(__FILE__)));
define('APP_FOLDER', 'simpleadmin');
define('CURRENT_PAGE', basename($_SERVER['REQUEST_URI']));
/* PATH OF SAVED QR CODES */
define('PATH', './saved_qrcode/'); //You can change the folder where the qr code will be saved
define('DIRECTORY', BASE_PATH.'/saved_qrcode/');
//You can change the page name for the redirect and the search parameter (the default is "id")
define('READ_PATH', $_SERVER['HTTP_HOST'].'/read.php?id=');
require_once BASE_PATH . '/lib/MysqliDb/MysqliDb.php';
require_once BASE_PATH . '/helpers/helpers.php';
/*
|--------------------------------------------------------------------------
| DATABASE CONFIGURATION
|--------------------------------------------------------------------------
*/
define('DB_HOST', "s");
define('DB_USER', "");
define('DB_PASSWORD', ""); // There are defined
define('DB_NAME', "");
/**
* Get instance of DB object
*/
function getDbInstance() {
return new MysqliDb(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
}
PHP Notice: Undefined index: REQUEST_URI in C:\Users\Dell\AppData\Local\Temp\fz3temp-2\config.php on line 8
Notice: Undefined index: REQUEST_URI in C:\Users\Dell\AppData\Local\Temp\fz3temp-2\config.php on line 8
Notice: Undefined index: HTTP_HOST in C:\Users\Dell\AppData\Local\Temp\fz3temp-2\config.php on line 15 PHP Notice: Undefined index: HTTP_HOST in C:\Users\Dell\AppData\Local\Temp\fz3temp-2\config.php on line 15 PHP Warning: require_once(C:\Users\Dell\AppData\Local\Temp/lib/MysqliDb/MysqliDb.php): failed to open stream: No such file or directory in C:\Users\Dell\AppData\Local\Temp\fz3temp-2\config.php on line 19
Warning: require_once(C:\Users\Dell\AppData\Local\Temp/lib/MysqliDb/MysqliDb.php): failed to open stream: No such file or directory in C:\Users\Dell\AppData\Local\Temp\fz3temp-2\config.php on line 19
source https://stackoverflow.com/questions/70481912/php-fatal-error-what-is-the-solution-for-the-error
Comments
Post a Comment