Hi, im a newbie to php. I need to configure and run my system on xampp platform. This system was developed by my friend but i dont know how to configure it. Im using windows xp. When i try to login to the admin page, im getting the following errors.
Errors:-
Undefined index: access in C:\xampp\htdocs\CourseMS2_2_1\includes\header.php on line 27
Undefined variable: user in C:\xampp\htdocs\CourseMS2_2_1\includes\header.php on line 37
Trying to get property of non-object in C:\xampp\htdocs\CourseMS2_2_1\includes\header.php on line 37
Undefined index: access in C:\xampp\htdocs\CourseMS2_2_1\includes\header.php on line 37
My coding:-
i took this from config.php under C:\xampp\htdocs\CourseMS2_2_1\admin
<?
//Database configuration
define('DB_NAME', 'coursems');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_HOST', 'localhost');
define('USE_PCONNECT', 'false');
//CourseMS Paths
define('HTTP_SERVER', 'http://localhost/CourseMS2_2_1/');
define('HTTP_PATH', '');
define('EXPORT_PATH', '/exports/');
define('REL_EXPORT_PATH', 'exports/');
// PHPESP database configuration
define('ESP_DB_NAME', 'book1');
define('ESP_DB_USER', 'root');
define('ESP_DB_PASS', '');
define('ESP_DB_HOST', 'localhost');
//phpESP paths
define('PHPESP_PATH', '/web/htdocs/course/public/handler.php');
define('PHPESP_APP', 'http://localhost/esp/');
//Google Map Key file
define('GOOGLE_MAP_KEY', '');
//Email settings
define('FROM', 'support@yourdomain.com');
define('SIGNATURE', 'CourseMS Support Team');
define('RANDOM_STRING', 'bob');
// Site Configuration Settings
define('TABLE_WIDTH', '100%');
define('SEC_TABLE_WIDTH', '90%');
define('JOB_REQUIREMENTS', 'false');
// Requirement Levels
define('LEVEL1_NAME', 'Jobs');
define('LEVEL2_NAME', 'Specialties');
define('LEVEL3_NAME', 'Bands');
define('LEVEL1_REQUIRED', 'true');
define('LEVEL2_REQUIRED', 'true');
define('LEVEL3_REQUIRED', 'true');
include('../site_config.php');
?>
Since im new to php, I dont know how to fix my codes to run the system. I need to resolve this asap bcoz i need to show my system to my college tutor. Please help me. thanks.