flowergal Posted November 21, 2011 Share Posted November 21, 2011 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 error stated in the forum. http://www.phpfreaks.com/forums/index.php?topic=327839.0 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. Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/ Share on other sites More sharing options...
Pikachu2000 Posted November 21, 2011 Share Posted November 21, 2011 There are several errors in the thread you linked to. How about you copy and paste your actual error message here? Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289885 Share on other sites More sharing options...
flowergal Posted November 21, 2011 Author Share Posted November 21, 2011 Hi, i'm getting the following error messages and i dont know how to fix. 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 please help me.. i need this solved urgently.. thanksss Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289888 Share on other sites More sharing options...
Pikachu2000 Posted November 21, 2011 Share Posted November 21, 2011 Post your code between . . . tags. Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289895 Share on other sites More sharing options...
flowergal Posted November 21, 2011 Author Share Posted November 21, 2011 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'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289897 Share on other sites More sharing options...
trq Posted November 21, 2011 Share Posted November 21, 2011 Can you post the relevant code? Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289899 Share on other sites More sharing options...
flowergal Posted November 21, 2011 Author Share Posted November 21, 2011 what is meant by relevant code? where do i look for it? the code i took from config.php file.. correct me if im wrong.. thanks Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289907 Share on other sites More sharing options...
trq Posted November 21, 2011 Share Posted November 21, 2011 The errors you are getting clearly state the issue is within your header.php file. They even tell; you what line the errors are occurring on. Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1289930 Share on other sites More sharing options...
flowergal Posted November 22, 2011 Author Share Posted November 22, 2011 i cant seem to fix the bug.. Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1290249 Share on other sites More sharing options...
trq Posted November 22, 2011 Share Posted November 22, 2011 I'm not surprised. Quote Link to comment https://forums.phpfreaks.com/topic/251515-helping-with-running-php-codes/#findComment-1290281 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.