- Code: Select all
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/home/dave/workspace/BandSite/web_root/external_lib/DB/DB.php) is not within the allowed path(s): (/home/domein/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/domein/domains/domein.nl/public_html/lib/Config.class.php on line 5
Warning: require_once(/home/dave/workspace/BandSite/web_root/external_lib/DB/DB.php) [function.require-once]: failed to open stream: Operation not permitted in /home/domein/domains/domein.nl/public_html/lib/Config.class.php on line 5
Fatal error: require_once() [function.require]: Failed opening required '/home/dave/workspace/BandSite/web_root/external_lib/DB/DB.php' (include_path='.:/usr/local/lib/php') in /home/domein/domains/domein.nl/public_html/lib/Config.class.php on line 5
I dont know what to do :-/
this is the file
- Code: Select all
<?php
$externalLibPath = '/home/dave/workspace/BandSite/web_root/external_lib/';
require_once($externalLibPath.'DB/DB.php');
require_once($externalLibPath.'smarty/lib/Smarty.class.php');
class Config {
///EDIT///
var $db_connection_variables = array(
'phptype' => 'mysql',
'username' => 'php',
'password' => 'phpsql',
'hostspec' => 'localhost',
'database' => 'test'
);
///END EDIT///
///EDIT///
var $siteBaseURL = 'http://172.24.128.152/';
///END EDIT///
///EDIT///
var $authorName = 'Name';
///END EDIT///
///EDIT///
var $authorEmail = 'youre@email.com';
///END EDIT///
///EDIT///
var $bandName = 'CMS';
///END EDIT///
///EDIT///
var $smartyTemplateDir = '/home/dave/workspace/BandSite/web_root/templates/templates/';
///END EDIT///
///EDIT///
var $smartyCompileDir = '/home/dave/workspace/BandSite/web_root/templates/templates_c/';
///END EDIT///
///EDIT///
var $smartyCacheDir = '/home/dave/workspace/BandSite/web_root/templates/cache/';
///END EDIT///
///EDIT///
var $smartyConfigDir = '/home/dave/workspace/BandSite/web_root/templates/configs/';
///END EDIT///
function Config() {
}
function getDBConnectionVariables(){
return $this->db_connection_variables;
}
function getAuthorName(){
return $this->authorName;
}
function getSiteBaseURL(){
return $this->siteBaseURL;
}
function getAuthorEmail(){
return $this->authorEmail;
}
function getBandName(){
return $this->bandName;
}
function getSmartyTemplateDir(){
return $this->smartyTemplateDir;
}
function getSmartyCompileDir(){
return $this->smartyCompileDir;
}
function getSmartyCacheDir(){
return $this->smartyCacheDir;
}
function getSmartyConfigDir(){
return $this->smartyCofigDir;
}
}
?>
Is there anyone that can help me please ??

