werezwolf
New Member
- Messages
- 8
- Reaction score
- 0
- Points
- 0
hi all heres a problem i cant understand
Site Structure: (only showing part of the structure)
WWW/
the file works fine on my home test server but here it through up this.
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/../Config/functions.php) is not within the allowed path(s): (/home/:/tmp) in /home/werezwol/public_html/Config/Config.php on line 21
Warning: require_once(/../Config/functions.php) [function.require-once]: failed to open stream: Operation not permitted in /home/werezwol/public_html/Config/Config.php on line 21
Fatal error: require_once() [function.require]: Failed opening required '/../Config/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/werezwol/public_html/Config/Config.php on line 21
--------------------------------
The nice line of code behind it. As you can guess yes this is the backbone file of my site nothing works without this.
Site Structure: (only showing part of the structure)
WWW/
Config/ (755)
------------------------------config.php (644)
functions.php (644)
index.php (644)functions.php (644)
the file works fine on my home test server but here it through up this.
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/../Config/functions.php) is not within the allowed path(s): (/home/:/tmp) in /home/werezwol/public_html/Config/Config.php on line 21
Warning: require_once(/../Config/functions.php) [function.require-once]: failed to open stream: Operation not permitted in /home/werezwol/public_html/Config/Config.php on line 21
Fatal error: require_once() [function.require]: Failed opening required '/../Config/functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/werezwol/public_html/Config/Config.php on line 21
--------------------------------
The nice line of code behind it. As you can guess yes this is the backbone file of my site nothing works without this.
PHP:
<?php
//THIS IS CONFIG.PHP
//Define Site Name
$site = 'The Site';
$style = 'DarkFantasy'; // Warning: Changing the style set may alter site layout in unwanted ways.
//------ Do Not Change Below ------//
//Define DIR Listings - absolute path
define('MAINDIR',"/.."); // this goes from /config/config.php to / or full path as /config/../
define('Config_DIR',MAINDIR . '/Config'); // full path as /config/../config/
define('Config_img_Dir',Config_DIR . '/images');
define('BB_DIR',MAINDIR . '/bb');
define('BB_style',BB_DIR . "/styles/$style");
define('BB_theme',BB_style . '/theme/images');
define('BB_imgset',BB_style . '/imageset/en');
//Define Var
define('SITE',$site);
//Require Variables, Functions & Template
require_once(Config_DIR . '/functions.php');
require_once(Config_DIR . '/template.php');
?>
Last edited: