Warning: require(J:/xampp/htdocs\\inc\libs\Smarty.class.php) [function.require]: failed to open str
Warning:require(J:/xampp/htdocs\\inc\libs\Smarty.class.php)[function.require]:failedt...
Warning: require(J:/xampp/htdocs\\inc\libs\Smarty.class.php) [function.require]: failed to open stream: No such file or directory in J:\xampp\htdocs\worldviewbank\inc\config.inc.php on line 75 同样的代码放在另一台电脑上没有问题但是移植过来到我的电脑上 就开始报这个问题config.inc.php<?phpinclude('sql_config.php');//==============定义常量define("DS",DIRECTORY_SEPARATOR); //目录分割符define("ROOT",$_SERVER['DOCUMENT_ROOT'].DS); //根目录define("HOME",ROOT.DIR.DS);//网站目录define("INCLUDES",HOME.'inc'.DS); define("CLASSES",INCLUDES.'classes'.DS); define("SMARTY_DIR", INCLUDES."libs".DS); define("TMP", HOME.'tmpl_c'.DS);define("TEMPLATES", HOME.'tmpl'.DS);define("SALT_STRING", "b325831860"); //cookie 加密 include('function.inc.php');include('options.inc.php');// Global singleton configurator also Observer (email notifier)class Config{ var $config; var $sortings = array(); var $mailer = null; var $db = null; function get($key) { return isset($this->config[$key]) ? $this->config[$key] : false; } function exists($key) { return isset($this->config[$key]); } function Config($arg=false) { global $gDirDb,$gAdminDb; if(is_object($gDirDb)) { $this->db = & $gDirDb; } else { $this->db = & $gAdminDb; } $this->config = (false==$arg) ? array() : $arg; } // get Singleton instance function &instance($arg = false) { static $s; if ($s==null) { $s = new Config($arg); } elseif($arg) { $s->config = $arg; } return $s; } }//===============载入SMARTY模块=============== require SMARTY_DIR.'Smarty.class.php'; //第75行 报错的位置 $smarty = new Smarty (); $smarty->compile_check = true; $smarty->force_compile = true; $smarty->template_dir = TEMPLATES; $smarty->compile_dir = TMP; //$smarty->default_modifiers = array ('myescape'); $smarty->assign('homepath', DIR);$smarty->assign('temppath', TEMPLATES);loadClass("DirDb");loadClass('Dir');$gDirDb = &new formfill(DBHOST,DBUSER,DBPASS,DBNAME,PREFIX,DBPORT); ?>
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询