- Joined
- Jun 1, 2018
- Posts
- 157
- Reaction
- 460
- Points
- 204
- Age
- 30
Warning: require_once(C:/xampp/htdocs\student-gradings\includes\config.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\studentgradings\includes\initialize.php on line 21
Fatal error: Uncaught Error: Failed opening required 'C:/xampp/htdocs\student-gradings\includes\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\studentgradings\includes\initialize.php:21 Stack trace: #0 C:\xampp\htdocs\studentgradings\index.php(2): require_once() #1 {main} thrown in C:\xampp\htdocs\studentgradings\includes\initialize.php on line 21
ito codes ko
require_once(LIB_PATH.DS."config.php");
ito codes sa config.php
<?php
/**
//Database Constants
defined('DB_SERVER') ? null : define("DB_SERVER","localhost");//define our database server
defined('DB_USER') ? null : define("DB_USER","root"); //define our database user
defined('DB_PASS') ? null : define("DB_PASS",""); //define our database Password
defined('DB_NAME') ? null : define("DB_NAME","dbgrading"); //define our database Name
$thisFile = str_replace('\\', '/', FILE);
$docRoot =$_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'includes/config.php'), '', $thisFile);
$srvRoot = str_replace('config/config.php','', $thisFile);
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
?>
Fatal error: Uncaught Error: Failed opening required 'C:/xampp/htdocs\student-gradings\includes\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\studentgradings\includes\initialize.php:21 Stack trace: #0 C:\xampp\htdocs\studentgradings\index.php(2): require_once() #1 {main} thrown in C:\xampp\htdocs\studentgradings\includes\initialize.php on line 21
ito codes ko
require_once(LIB_PATH.DS."config.php");
ito codes sa config.php
<?php
/**
- Description: The main class for Database.
- Author: Joken Villanueva
- Date Created: october 27, 2013
- Revised By:
//Database Constants
defined('DB_SERVER') ? null : define("DB_SERVER","localhost");//define our database server
defined('DB_USER') ? null : define("DB_USER","root"); //define our database user
defined('DB_PASS') ? null : define("DB_PASS",""); //define our database Password
defined('DB_NAME') ? null : define("DB_NAME","dbgrading"); //define our database Name
$thisFile = str_replace('\\', '/', FILE);
$docRoot =$_SERVER['DOCUMENT_ROOT'];
$webRoot = str_replace(array($docRoot, 'includes/config.php'), '', $thisFile);
$srvRoot = str_replace('config/config.php','', $thisFile);
define('WEB_ROOT', $webRoot);
define('SRV_ROOT', $srvRoot);
?>