Hello; Just purchased a Pagerank Chekcer PHP Script But installation Failed http://www.realpagerankchecker.com Warning: require_once(/path/to/home/klib/class.kConfig.php) [function.require-once]: failed to open stream: No such file or directory in /home/realpage/public_html/config.php on line 49 Fatal error: require_once() [function.require]: Failed opening required '/path/to/home/klib/class.kConfig.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/realpage/public_html/config.php on line 49 This script only need to edit config.php ------------------------------------- /** * SECTION 1: Configure your server paths */ define('DIR_BASE', '/'); define('PATH_BASE', '/path/to/home/'); // LOADING SYSTEM RESOURCES ** DO NOT EDIT ** define('PATH_INCLUDE', PATH_BASE . 'inc/'); define('PATH_LIB', PATH_BASE . 'klib/'); define('DIR_IMAGES', DIR_BASE . 'images/'); define('PATH_IMAGES', PATH_BASE . 'images/'); require_once(PATH_LIB . 'class.kConfig.php'); require_once(PATH_LIB . 'class.kTemplate.php'); require_once(PATH_LIB . 'class.kValidate.php'); require_once(PATH_LIB . 'kFunctions.php'); $cfg = new kConfig(); $tpl = new kTemplate(); // END LOADING SYSTEM RESOURCES /** * SECTION 2: Set common site information */ // This is the max # of hosts you want to allow (limited to # of hosts in PR class $cfg->setVar('pr_maxhosts', 99); // This is the max # of sites you want to allow in multiple PR checks $cfg->setVar('pr_checklimit', 25); // Set the site URL, name and default page title $cfg->setVar('site_url', 'http://www.realpagerankchecker.com/'); $cfg->setVar('site_name', 'RealPagerankChecker.com'); $cfg->setVar('site_title', 'Check Google Pagerank Tool, Multiple PageRank Checker, and PageRank Display'); // Set site contact information $cfg->setVar('contact_email', 'admin@realpagerankchecker.com'); // Set the active template $cfg->setVar('template', 'default'); // Set the base PageRank image path $cfg->setVar('path_pr_images', PATH_IMAGES . 'pr/'); $cfg->setVar('url_pr_images', $cfg->getVar('site_url') . '/images/pr/'); $cfg->setVar('pr_image_default', 'Google'); // Set site META tags $cfg->setVar('meta_keywords', 'Check Pagerank,Google Pagerank Checker'); $cfg->setVar('meta_description', 'Check Google Valid Pagerank ,Pagerank Checker - Realpagerankchecker.com'); // Set CAPTCHA for PageRank tool forms (1 = active, 0 = disabled) $cfg->setVar('f_captcha', 0); // Set CAPTCHA for Contact form (1 = active, 0 = disabled) $cfg->setVar('contact_captcha', 1); \-------------------------------- Can Any one Help me Regards Ben
Did you set the path? define('PATH_BASE', '/path/to/home/'); define('PATH_BASE', '/home/realpage/public_html/');
change to define('PATH_BASE', '/home/realpage/public_html/'); But still not work I think problem is 'PATH_BASE'
Configuring Your Site PageRank Checker Script uses one file for it's configuration settings: `config.php`. At a minimum you need to set the values for DIR_BASE, PATH_BASE, and site_url for your site to function properly. There are additional settings that you should configure for your site title, preferences, etc. Below you can find all of the configuration settings available in config.php with descriptions and usage examples. Setting Name Description Usage DIR_BASE Relative path of your site, usually `/` define('DIR_BASE', '/'); PATH_BASE Full absolute path to the script folder define('PATH_BASE', '/path/to/home/'); site_url Full URL of your Web site including the trailing slash $cfg->setVar('site_url', 'http://www.yoursite.com/'); site_name Short site name $cfg->setVar('site_name', 'Site Name'); site_title Site title used in browser $cfg->setVar('site_title', 'Site Title'); contact_email Contact email address for site owner $cfg->setVar('contact_email', 'webmaster@yoursite.com'); template The active template name $cfg->setVar('template', 'default'); pr_maxhosts Max # of Google DCs you want to search $cfg->setVar('pr_maxhosts', 99); pr_checklimit Max # of sites allowed in multiple PR checker $cfg->setVar('pr_checklimit', 25); pr_image_default The default PR button image, and the image used in PR tools $cfg->setVar('pr_image_default', 'Google'); meta_keywords The META keywords field in your <HEAD> tag $cfg->setVar('meta_keywords', 'this,that'); meta_description The META description field in your <HEAD> tag $cfg->setVar('meta_description', 'My site.'); f_captcha Set CAPTCHA for PageRank tool forms (1 = active, 0 = disabled) $cfg->setVar('f_captcha', 1); contact_captcha Set CAPTCHA for contact form (1 = active, 0 = disabled) $cfg->setVar('contact_captcha', 1);
Unfortunately, we can't tell you what the correct path is on your server. There are numerous ways to check what path a script is running from, for instance, you can check the last box listed on a phpinfo.php file when you view it from your browser.