jpinheiro Posted August 2, 2008 Share Posted August 2, 2008 I keep Getting This Error on my site but i dont know what it means Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a2438169/public_html/cynscriptz/buy/smarty/core/core.get_include_path.php on line 34 my website is http://cynscriptz.com/ which is masking my real website name http://mytestsite.net76.net/cynscriptz/buy/index.php Any help appreciated ------------------------------------------------------- This is the line that has the error if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) { this is the File That has the error <?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Get path to file from include_path * * @param string $file_path * @param string $new_file_path * @return boolean * @staticvar array|null */ // $file_path, &$new_file_path function smarty_core_get_include_path(&$params, &$smarty) { static $_path_array = null; if(!isset($_path_array)) { $_ini_include_path = ini_get('include_path'); if(strstr($_ini_include_path,';')) { // windows pathnames $_path_array = explode(';',$_ini_include_path); } else { $_path_array = explode(':',$_ini_include_path); } } foreach ($_path_array as $_include_path) { if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) { $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path']; return true; } } return false; } /* vim: set expandtab: */ ?> Quote Link to comment https://forums.phpfreaks.com/topic/117866-need-help-please-read/ Share on other sites More sharing options...
ignace Posted August 4, 2008 Share Posted August 4, 2008 http://be.php.net/features.safe-mode you are not allowed to read files from the directory Quote Link to comment https://forums.phpfreaks.com/topic/117866-need-help-please-read/#findComment-607434 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.