•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,607 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,492 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1174 | Replies: 3
![]() |
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
i try to install software called kbpublisher on my website and i need "document root" to configar
this software
www.basma.sy/db
thanks
this software
www.basma.sy/db
thanks
•
•
Join Date: Nov 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
<?php
// +---------------------------------------------------------------------------+
// | This file is part of the KnowledgebasePublisher package |
// | KnowledgebasePublisher - web based knowledgebase publisher tool |
// | |
// | Author: Evgeny Leontev <eleontev@gmail.com> |
// | Copyright (c) 2005 Evgeny Leontev |
// | |
// | For the full copyright and license information, please view the LICENSE |
// | file that was distributed with this source code. |
// +---------------------------------------------------------------------------+
/* GENERAL */
$conf['db_host'] = "localhost";
$conf['db_base'] = "kb";
$conf['db_user'] = "root";
$conf['db_pass'] = "";
$conf['db_driver'] = "mysql"; // no other were tested
$conf['tbl_pref'] = 's_';
$conf['session_name'] = 'gdfrtsvfdr'; // session name for admin area
$conf['lang'] = 'en'; // see admin/lang/ - for available languages
// or check on http://sourceforge.net/projects/kbpublisher
/* PATHS */
// if you need write this manually, may required on windows or for cron jobs
//$_SERVER['DOCUMENT_ROOT'] = 'c:/Inetpub/wwwroot';
//$_SERVER['HTTP_HOST'] = 'domain.com'
// admin path
$conf['home_dir'] = '/kb/admin/'; // path to admin dir without DOCUMENT_ROOT
// client path
$conf['client_home_dir'] = '/kb/'; // path to kb dir without DOCUMENT_ROOT
$conf['fck_upload_dir'] = '/kb_upload/'; // where FCK editor place uploaded images (relative to DOCUMENT_ROOT)
// extra path
$conf['extra_home_dir'] = '/kb_extra/';
/* OTHERS */ // some configs 1 = yes, 0 = no
$conf['debug_info'] = 0; // display $_GET, $_SESSION, $_POST and also set displaying all errors
$conf['debug_speed'] = 0; // display page generating speed
$conf['debug_db'] = 0; // display all sent sql (adodb format)
$conf['demo_mode'] = 0; //
$conf['app_width'] = '980'; // main box width you can use % (in admin).
$conf['auth_check_ip'] = 0; // on every request ip will be checked with saved one on login
$conf['auth_expired'] = 60; // time in minutes after that if no activity authentication will be deleted (in admin)
$conf['use_https'] = 0; // not tested
$conf['limit'] = 10; // default records per page (in admin)
$conf['limit_range'] = array(10, 20, 40); // default limit range per page (in admin)
$conf['use_mod_rewrite'] = 0; // this force client side to use "Search engine friendly URL"
// it should work automatically but if does not try set it to 1
/* IN MOST CASES THERE IS NO NEED TO EDIT ANYTHING BELOW THIS LINE */
/* --------------------------------------------------------------- */
/* PATHS */
// admin path
$conf['root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['home_dir'];
$conf['home_path'] = 'http://' . $_SERVER['HTTP_HOST'] . $conf['home_dir'];
// client path
$conf['client_root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['client_home_dir'];
$conf['client_home_path'] = 'http://' . $_SERVER['HTTP_HOST'] . $conf['client_home_dir'];
$conf['site_address'] = $_SERVER['HTTP_HOST'];
// extra path
$conf['extra_root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['extra_home_dir'];
$conf['php_path'] = '/usr/local/bin/php'; // probably could be required in cron job for example
$win = (substr(PHP_OS, 0, 3) == "WIN");
$include_separator = ($win) ? ';' : ':';
$include_path = array();
/* DON'T MODIFY */
$conf['product_name'] = 'KBPublisher';
$conf['product_www'] = 'http://www.kbpublisher.com/';
$conf['product_version'] = '2.0.1';
$conf['home_path'] = ($conf['use_https']) ? str_replace('http', 'https', $conf['home_path']) : $conf['home_path'];
// in some cases we have double slash
$conf['root_dir'] = str_replace('//', '/', $conf['root_dir']);
$conf['client_root_dir'] = str_replace('//', '/', $conf['client_root_dir']);
$conf['extra_root_dir'] = str_replace('//', '/', $conf['extra_root_dir']);
define('APP_ROOT_DIR', $conf['root_dir']);
define('APP_HOME_PATH', $conf['home_path']);
define('APP_CLIENT_DIR', $conf['client_root_dir']);
define('APP_CLIENT_PATH', $conf['client_home_path']);
define('APP_SITE_ADDRESS', $conf['site_address']);
define('APP_LIB_DIR', $conf['root_dir'] . 'lib/');
define('APP_MODULE_DIR', $conf['root_dir'] . 'modules/');
define('APP_TMPL_DIR', $conf['root_dir'] . 'template/');
define('APP_EMAI_TMPL_DIR', $conf['root_dir'] . 'template_email/');
define('APP_CACHE_DIR', $conf['root_dir'] . 'cache/');
define('APP_LANG', $conf['lang']);
define('APP_MSG_DIR', $conf['root_dir'] . 'lang/');
define('APP_MSG_LANG_DIR', $conf['root_dir'] . 'lang/'.$conf['lang'].'/');
define('APP_DEMO_MODE', $conf['demo_mode']);
define('APP_EXTRA_MODULE_DIR', $conf['extra_root_dir']);
$include_path[] = ini_get('include_path');
$include_path[] = APP_LIB_DIR;
$include_path[] = APP_LIB_DIR . 'Pear';
ini_set('include_path', implode($include_separator, $include_path));
ini_set('display_errors', 1);
//ini_set('arg_separator.output', '&');
if($conf['debug_info']) {
ini_set('error_reporting', E_ALL);
} else {
//ini_set('display_errors', 0);
ini_set('error_reporting', E_ALL ^ E_NOTICE);
//ini_set('error_reporting', E_ALL ^ (E_NOTICE | E_WARNING));
//ini_set('error_reporting', E_ALL ^ (E_ERROR | E_WARNING | E_PARSE | E_NOTICE));
}
?>
// +---------------------------------------------------------------------------+
// | This file is part of the KnowledgebasePublisher package |
// | KnowledgebasePublisher - web based knowledgebase publisher tool |
// | |
// | Author: Evgeny Leontev <eleontev@gmail.com> |
// | Copyright (c) 2005 Evgeny Leontev |
// | |
// | For the full copyright and license information, please view the LICENSE |
// | file that was distributed with this source code. |
// +---------------------------------------------------------------------------+
/* GENERAL */
$conf['db_host'] = "localhost";
$conf['db_base'] = "kb";
$conf['db_user'] = "root";
$conf['db_pass'] = "";
$conf['db_driver'] = "mysql"; // no other were tested
$conf['tbl_pref'] = 's_';
$conf['session_name'] = 'gdfrtsvfdr'; // session name for admin area
$conf['lang'] = 'en'; // see admin/lang/ - for available languages
// or check on http://sourceforge.net/projects/kbpublisher
/* PATHS */
// if you need write this manually, may required on windows or for cron jobs
//$_SERVER['DOCUMENT_ROOT'] = 'c:/Inetpub/wwwroot';
//$_SERVER['HTTP_HOST'] = 'domain.com'
// admin path
$conf['home_dir'] = '/kb/admin/'; // path to admin dir without DOCUMENT_ROOT
// client path
$conf['client_home_dir'] = '/kb/'; // path to kb dir without DOCUMENT_ROOT
$conf['fck_upload_dir'] = '/kb_upload/'; // where FCK editor place uploaded images (relative to DOCUMENT_ROOT)
// extra path
$conf['extra_home_dir'] = '/kb_extra/';
/* OTHERS */ // some configs 1 = yes, 0 = no
$conf['debug_info'] = 0; // display $_GET, $_SESSION, $_POST and also set displaying all errors
$conf['debug_speed'] = 0; // display page generating speed
$conf['debug_db'] = 0; // display all sent sql (adodb format)
$conf['demo_mode'] = 0; //
$conf['app_width'] = '980'; // main box width you can use % (in admin).
$conf['auth_check_ip'] = 0; // on every request ip will be checked with saved one on login
$conf['auth_expired'] = 60; // time in minutes after that if no activity authentication will be deleted (in admin)
$conf['use_https'] = 0; // not tested
$conf['limit'] = 10; // default records per page (in admin)
$conf['limit_range'] = array(10, 20, 40); // default limit range per page (in admin)
$conf['use_mod_rewrite'] = 0; // this force client side to use "Search engine friendly URL"
// it should work automatically but if does not try set it to 1
/* IN MOST CASES THERE IS NO NEED TO EDIT ANYTHING BELOW THIS LINE */
/* --------------------------------------------------------------- */
/* PATHS */
// admin path
$conf['root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['home_dir'];
$conf['home_path'] = 'http://' . $_SERVER['HTTP_HOST'] . $conf['home_dir'];
// client path
$conf['client_root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['client_home_dir'];
$conf['client_home_path'] = 'http://' . $_SERVER['HTTP_HOST'] . $conf['client_home_dir'];
$conf['site_address'] = $_SERVER['HTTP_HOST'];
// extra path
$conf['extra_root_dir'] = $_SERVER['DOCUMENT_ROOT'] . $conf['extra_home_dir'];
$conf['php_path'] = '/usr/local/bin/php'; // probably could be required in cron job for example
$win = (substr(PHP_OS, 0, 3) == "WIN");
$include_separator = ($win) ? ';' : ':';
$include_path = array();
/* DON'T MODIFY */
$conf['product_name'] = 'KBPublisher';
$conf['product_www'] = 'http://www.kbpublisher.com/';
$conf['product_version'] = '2.0.1';
$conf['home_path'] = ($conf['use_https']) ? str_replace('http', 'https', $conf['home_path']) : $conf['home_path'];
// in some cases we have double slash
$conf['root_dir'] = str_replace('//', '/', $conf['root_dir']);
$conf['client_root_dir'] = str_replace('//', '/', $conf['client_root_dir']);
$conf['extra_root_dir'] = str_replace('//', '/', $conf['extra_root_dir']);
define('APP_ROOT_DIR', $conf['root_dir']);
define('APP_HOME_PATH', $conf['home_path']);
define('APP_CLIENT_DIR', $conf['client_root_dir']);
define('APP_CLIENT_PATH', $conf['client_home_path']);
define('APP_SITE_ADDRESS', $conf['site_address']);
define('APP_LIB_DIR', $conf['root_dir'] . 'lib/');
define('APP_MODULE_DIR', $conf['root_dir'] . 'modules/');
define('APP_TMPL_DIR', $conf['root_dir'] . 'template/');
define('APP_EMAI_TMPL_DIR', $conf['root_dir'] . 'template_email/');
define('APP_CACHE_DIR', $conf['root_dir'] . 'cache/');
define('APP_LANG', $conf['lang']);
define('APP_MSG_DIR', $conf['root_dir'] . 'lang/');
define('APP_MSG_LANG_DIR', $conf['root_dir'] . 'lang/'.$conf['lang'].'/');
define('APP_DEMO_MODE', $conf['demo_mode']);
define('APP_EXTRA_MODULE_DIR', $conf['extra_root_dir']);
$include_path[] = ini_get('include_path');
$include_path[] = APP_LIB_DIR;
$include_path[] = APP_LIB_DIR . 'Pear';
ini_set('include_path', implode($include_separator, $include_path));
ini_set('display_errors', 1);
//ini_set('arg_separator.output', '&');
if($conf['debug_info']) {
ini_set('error_reporting', E_ALL);
} else {
//ini_set('display_errors', 0);
ini_set('error_reporting', E_ALL ^ E_NOTICE);
//ini_set('error_reporting', E_ALL ^ (E_NOTICE | E_WARNING));
//ini_set('error_reporting', E_ALL ^ (E_ERROR | E_WARNING | E_PARSE | E_NOTICE));
}
?>
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
apple browser business cd choose community computer console crack debian dell development download drm explorer fiji ie 7 install internet leopard license linux microsoft mobile news office open operating os phishing photo php root security server software source survey switching system ubuntu unix upgrade vista volume web windows windows update windows vista xp
- Unlimited Features, Amazing Prices Private Label Windows Reseller Hosting! (Web Hosting Deals)
- Windows Web Hosting | ASP.NET Web Hosting UK | SQL Web Hosting (Web Hosting Deals)
- Windows Virtual Server! (Windows Software)
- Cheap Linux or Windows Web Hosting (Web Hosting Deals)
- $0.19/month Domain Hosting - Windows Reseller Hosting (Web Hosting Deals)
- another newbie with alot of redhat and apache server Q'S (Linux Servers and Apache)
- spyware and windows virtual memory (Viruses, Spyware and other Nasties)
- “Windows Virtual Memory Size Too Low� in XP (Windows NT / 2000 / XP / 2003)
- Virtual Hosting Multiple Websites (Linux Servers and Apache)
Other Threads in the PHP Forum
- Previous Thread: Apache - Limiting upload speed
- Next Thread: PHP and MySQL Stored Procedure Exec Problem


Linear Mode