安装smarty时出现了下面的问题,求大神帮忙 30
Fatalerror:require()[function.require]:Failedopeningrequired'F:\PHPWeb\libsSmarty.cla...
Fatal error: require() [function.require]: Failed opening required 'F:\PHPWeb\libsSmarty.class.php' (include_path='.;C:\php5\pear') in F:\PHPWeb\config.php on line 5
下面是源代码
<?php
define('BASE_PATH',$_SERVER['DOCUMENT_ROOT']);
define('SMARTY_PATH','\Smarty\\');
/*require BASE_PATH.SMARTY_PATH.'libs\Smarty.class.php';*/
require('F:\PHPWeb\libsSmarty.class.php');
$smarty=new Smarty;
$smarty->template_dir=BASE_PATH.SMARTY_PATH.'templates/';
$smarty->compile_dir=BASE_PATH.SMARTY_PATH.'templates_c/';
$smarty->config_dir=BASE_PATH.SMARTY_PATH.'configs/';
$smarty->cache_dir=BASE_PATH.SMARTY_PATH.'cache/';
$smarty->left_delimiter='<{';
$smarty->right_delimiter='}>';
?> 展开
下面是源代码
<?php
define('BASE_PATH',$_SERVER['DOCUMENT_ROOT']);
define('SMARTY_PATH','\Smarty\\');
/*require BASE_PATH.SMARTY_PATH.'libs\Smarty.class.php';*/
require('F:\PHPWeb\libsSmarty.class.php');
$smarty=new Smarty;
$smarty->template_dir=BASE_PATH.SMARTY_PATH.'templates/';
$smarty->compile_dir=BASE_PATH.SMARTY_PATH.'templates_c/';
$smarty->config_dir=BASE_PATH.SMARTY_PATH.'configs/';
$smarty->cache_dir=BASE_PATH.SMARTY_PATH.'cache/';
$smarty->left_delimiter='<{';
$smarty->right_delimiter='}>';
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询