Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

error

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

error

Postby savic » Sun Sep 30, 2012 6:56 am

Hello, i have found a script. after i uploaded to my server and i filt in the config... i'f got this error
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 ??
savic
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sun Sep 30, 2012 6:49 am

Re: error

Postby kyle04 » Mon Oct 01, 2012 1:30 pm

The error messages are reasonably clear - you do not have access to the directory file paths.

Check server settings or file permissions.
kyle04
New php-forum User
New php-forum User
 
Posts: 94
Joined: Sat Jul 07, 2012 1:36 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.