How do i clear this error


Joined
Nov 17, 2021
Messages
1
Reaction score
0
<?php
//define the core paths
//Define them as absolute peths to make sure that require_once works as expected

//DIRECTORY_SEPARATOR is a PHP Pre-defined constants:
//(\ for windows, / for Unix)
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);

defined('SITE_ROOT') ? null : define ('SITE_ROOT', 'C:'.DS.'xamp'.DS.'htdocs'.DS.'fyp'.DS.'Job-Portal-Platform-master'.DS.'jobportal');

defined('LIB_PATH') ? null : define ('LIB_PATH',SITE_ROOT.DS.'include');

//load the database configuration first.
require_once(LIB_PATH.DS."config.php");
require_once(LIB_PATH.DS."function.php");
require_once(LIB_PATH.DS."session.php");
require_once(LIB_PATH.DS."accounts.php");
require_once(LIB_PATH.DS."autonumbers.php");
require_once(LIB_PATH.DS."companies.php");
require_once(LIB_PATH.DS."job.php");
require_once(LIB_PATH.DS."employees.php");
require_once(LIB_PATH.DS."categories.php");
require_once(LIB_PATH.DS."applicant.php");
require_once(LIB_PATH.DS."jobregistration.php");

resulting in:
Warning: require_once(C:\xamp\htdocs\fyp\Job-Portal-Platform-master\jobportal\include\config.php): failed to open stream: No such file or directory in C:\xampp\htdocs\fyp\Job-Portal-Platform-master\jobportal\include\initialize.php on line 14

Fatal error
: require_once(): Failed opening required 'C:\xamp\htdocs\fyp\Job-Portal-Platform-master\jobportal\include\config.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\fyp\Job-Portal-Platform-master\jobportal\include\initialize.php on line 14


require_once(LIB_PATH.DS."database.php");
?>
 
Ad

Advertisements


Top